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 /drivers/i2c/busses/i2c-mlxbf.c | |
parent | i2c: i801: make FEATURE_BLOCK_PROC dependent on FEATURE_BLOCK_BUFFER (diff) | |
download | linux-eb4d8bac03bc20c5f2975da325e2d669882ef03e.tar.xz linux-eb4d8bac03bc20c5f2975da325e2d669882ef03e.zip |
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 'drivers/i2c/busses/i2c-mlxbf.c')
0 files changed, 0 insertions, 0 deletions