summaryrefslogtreecommitdiff
path: root/drivers/media/radio/si4713/si4713.h
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-10-21 19:07:01 +0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-14 23:03:14 +0300
commitfbe14a124c1616af65ddfc1add2fd323aaec67ae (patch)
treec925fb8391466a5f2f59962c798e805065aade7f /drivers/media/radio/si4713/si4713.h
parentd4471deceba46ea6fd60f7fa5e8da3fb72bbbe44 (diff)
downloadlinux-fbe14a124c1616af65ddfc1add2fd323aaec67ae.tar.xz
[media] si4713: switch reset gpio to devm_gpiod API
This updates the driver to use the managed gpiod interface instead of the unmanged old GPIO API. This is a preperation for the introduction of device tree support. Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: fixed trivial compiler warning] Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/radio/si4713/si4713.h')
-rw-r--r--drivers/media/radio/si4713/si4713.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/radio/si4713/si4713.h b/drivers/media/radio/si4713/si4713.h
index ed28ed27c95f..7c2479f42329 100644
--- a/drivers/media/radio/si4713/si4713.h
+++ b/drivers/media/radio/si4713/si4713.h
@@ -16,6 +16,7 @@
#define SI4713_I2C_H
#include <linux/regulator/consumer.h>
+#include <linux/gpio/consumer.h>
#include <media/v4l2-subdev.h>
#include <media/v4l2-ctrls.h>
#include <media/si4713.h>
@@ -236,7 +237,7 @@ struct si4713_device {
struct completion work;
struct regulator *vdd;
struct regulator *vio;
- int gpio_reset;
+ struct gpio_desc *gpio_reset;
u32 power_state;
u32 rds_enabled;
u32 frequency;