leds: pca955x: Correct I2C Functionality
authorTin Huynh <tnhuynh@apm.com>
Mon, 22 May 2017 09:19:20 +0000 (16:19 +0700)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Mon, 22 May 2017 19:12:44 +0000 (21:12 +0200)
commitaace34c0bb8ea3c8bdcec865b6a4be4db0a68e33
treefd0199eb315f41e62ac1c56f4e6f57e55f4041cd
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
leds: pca955x: Correct I2C Functionality

The driver checks an incorrect flag of functionality of adapter.
When a driver requires i2c_smbus_read_byte_data and
i2c_smbus_write_byte_data, it should check I2C_FUNC_SMBUS_BYTE_DATA
instead I2C_FUNC_I2C.
This patch fixes the problem.

Signed-off-by: Tin Huynh <tnhuynh@apm.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/leds-pca955x.c