summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x/radio-si470x.h
diff options
context:
space:
mode:
authorPawe? Chmiel <pawel.mikolaj.chmiel@gmail.com>2018-12-07 14:58:11 +0100
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-21 18:36:18 +0100
commit1c64222be9ad0e56ad9a222b35e063d481f58cfc (patch)
tree238e8bd463d4aa9effccb2627f66ce9520d90854 /drivers/media/radio/si470x/radio-si470x.h
parentmedia: si470x-i2c: Use managed resource helpers (diff)
downloadlinux-1c64222be9ad0e56ad9a222b35e063d481f58cfc.tar.xz
linux-1c64222be9ad0e56ad9a222b35e063d481f58cfc.zip
media: si470x-i2c: Add optional reset-gpio support
If reset-gpio is defined, use it to bring device out of reset. Without this, it's not possible to access si470x registers. Signed-off-by: Pawe? Chmiel <pawel.mikolaj.chmiel@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/radio/si470x/radio-si470x.h')
-rw-r--r--drivers/media/radio/si470x/radio-si470x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x.h b/drivers/media/radio/si470x/radio-si470x.h
index 35fa0f3bbdd2..6fd6a399cb77 100644
--- a/drivers/media/radio/si470x/radio-si470x.h
+++ b/drivers/media/radio/si470x/radio-si470x.h
@@ -189,6 +189,7 @@ struct si470x_device {
#if IS_ENABLED(CONFIG_I2C_SI470X)
struct i2c_client *client;
+ struct gpio_desc *gpio_reset;
#endif
};