]> www.infradead.org Git - users/dwmw2/linux.git/commit
leds: pca955x: Correct I2C Functionality
authorTin Huynh <tnhuynh@apm.com>
Mon, 22 May 2017 09:19:20 +0000 (16:19 +0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:25 +0000 (21:36 -0400)
commitebcf3c7421675f0e34befbd5d3a5c8207cdc1e9e
treec16cffa274e8d8a24309917db87e87c472e96645
parent5e2eee8e54bd31ede9110a6a4c620d07203a866b
leds: pca955x: Correct I2C Functionality

[ Upstream commit aace34c0bb8ea3c8bdcec865b6a4be4db0a68e33 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/leds/leds-pca955x.c