commit | aa68ebf1d45ed095ca00eb4d5418fba4d44ff14e | [log] [tgz] |
---|---|---|
author | Andreas Sandberg <andreas@sandberg.uk> | Tue Jul 12 21:26:51 2022 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Aug 16 11:32:26 2022 +0200 |
tree | 3eecd0786481eb8592d511e2b19447904a717ddf | |
parent | 0c343344eb759e5a7f76dccf9eca5d4d369cbb89 [diff] |
drivers: ssd16xx: Add a helper for uint8 writes Many register writes only use 8 bits of data. A common pattern in the driver is to assign a constant to a temporary variable and write that to the device. Simplify this pattern by adding a helper function that writes an uint8 to a device. Signed-off-by: Andreas Sandberg <andreas@sandberg.uk>