summaryrefslogtreecommitdiff
path: root/drivers/media/radio/si4713-i2c.h
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-10-29 11:31:39 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:35 -0200
commit00df055ae315c9c8792dc4d012e6ad9c4d527e87 (patch)
tree9edad9db1aee2b40ab3e8b920700ac32ab2f2e9c /drivers/media/radio/si4713-i2c.h
parentbf797165f099296b622bcdcea1126a113e0aaac4 (diff)
[media] radio-si4713: Add regulator framework support
Convert the driver to use regulator framework instead of set_power callback. This with gpio_reset platform data provide cleaner way to manage chip VIO, VDD and reset signal inside the driver. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Cc: Eduardo Valentin <eduardo.valentin@nokia.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/si4713-i2c.h')
-rw-r--r--drivers/media/radio/si4713-i2c.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/radio/si4713-i2c.h b/drivers/media/radio/si4713-i2c.h
index faf8cff124f1..c6dfa7fb101c 100644
--- a/drivers/media/radio/si4713-i2c.h
+++ b/drivers/media/radio/si4713-i2c.h
@@ -211,6 +211,8 @@ struct acomp_info {
u32 enabled;
};
+#define SI4713_NUM_SUPPLIES 2
+
/*
* si4713_device - private data
*/
@@ -220,11 +222,12 @@ struct si4713_device {
/* private data structures */
struct mutex mutex;
struct completion work;
- struct si4713_platform_data *platform_data;
struct rds_info rds_info;
struct limiter_info limiter_info;
struct pilot_info pilot_info;
struct acomp_info acomp_info;
+ struct regulator_bulk_data supplies[SI4713_NUM_SUPPLIES];
+ int gpio_reset;
u32 frequency;
u32 preemphasis;
u32 mute;