Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2021-02-25 19:11:01 +0300
committerWolfram Sang <wsa@kernel.org>2021-02-26 13:25:24 +0300
commita1858ce0cfe31368b23ba55794e409fb57ced4a4 (patch)
tree881cb8725b4c372552dbccc3205be59da78028a8 /drivers/i2c/busses/i2c-designware-master.c
parent2c87f7a38f930ef6f6a7bdd04aeb82ce3971b54b (diff)
i2c: brcmstb: Fix brcmstd_send_i2c_cmd condition
The brcmstb_send_i2c_cmd currently has a condition that is (CMD_RD || CMD_WR) which always evaluates to true, while the obvious fix is to test whether the cmd variable passed as parameter holds one of these two values. Fixes: dd1aa2524bc5 ("i2c: brcmstb: Add Broadcom settop SoC i2c controller driver") Reported-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-master.c')
0 files changed, 0 insertions, 0 deletions