OSDN Git Service

iio: light: tsl2563: Use i2c_smbus_write_word_data() in tsl2563_configure()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Dec 2022 19:03:39 +0000 (21:03 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 28 Dec 2022 17:19:45 +0000 (17:19 +0000)
commit3c183534f2784484182e51c8019c1e9f0638ef8a
tree9f753348812d8f9dc0bf7b58c6bd53728a02c4c5
parent027641b52fe37b64af61025298ce160c8b9b7a73
iio: light: tsl2563: Use i2c_smbus_write_word_data() in tsl2563_configure()

Driver already uses the word accessors when it makes sense, but
in the tsl2563_configure(). Switch the latter to use word accessor.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Ferry Toth <ftoth@exalondelft.nl>
Link: https://lore.kernel.org/r/20221207190348.9347-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2563.c