Re: [PATCH V1] leds: pca955x: Correct I2C Functionality

2017-05-22 Thread Jacek Anaszewski
Hi Tin, On 05/22/2017 11:19 AM, Tin Huynh wrote: > 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. >

[PATCH V1] leds: pca955x: Correct I2C Functionality

2017-05-22 Thread Tin Huynh
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 --- drivers/leds/leds-pca955x.c |