diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2022-12-19 19:16:08 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-02-12 22:10:53 +0100 |
commit | eb4d8bac03bc20c5f2975da325e2d669882ef03e (patch) | |
tree | bb9412073eb92941575453a916bf5bcf9f0d038f /Documentation/devicetree/bindings/i2c/st,sti-i2c.yaml | |
parent | e98a3bc0403bc60e949b565f3b36c6aed399a976 (diff) |
i2c: i801: add helper i801_set_hstadd()
Factor out setting SMBHSTADD to a helper. The current code makes the
assumption that constant I2C_SMBUS_READ has bit 0 set, that's not ideal.
Therefore let the new helper explicitly check for I2C_SMBUS_READ.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/i2c/st,sti-i2c.yaml')
0 files changed, 0 insertions, 0 deletions