OSDN Git Service

media: max9271: Fix GPIO enable/disable
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Fri, 20 Nov 2020 16:15:28 +0000 (17:15 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Dec 2020 15:14:27 +0000 (16:14 +0100)
commit909a0a189c677307edd461e21fd962784370d27f
tree1f51ccf42f782652f15bf7d7fc21bb1e7ef85980
parent0ae426ebd0dcef811a012b33345e6f7ca56256f4
media: max9271: Fix GPIO enable/disable

Fix GPIO enable/disable operations which wrongly read the 0x0f register
to obtain the current mask of the enabled lines instead of using
the correct 0x0e register.

Also fix access to bit 0 of the register which is marked as reserved.

Fixes: 34009bffc1c6 ("media: i2c: Add RDACM20 driver")
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/max9271.c