diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2010-10-29 10:31:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:35 -0500 |
commit | 00df055ae315c9c8792dc4d012e6ad9c4d527e87 (patch) | |
tree | 9edad9db1aee2b40ab3e8b920700ac32ab2f2e9c /drivers/media/radio/si4713-i2c.h | |
parent | bf797165f099296b622bcdcea1126a113e0aaac4 (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.h | 5 |
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 { | |||
211 | u32 enabled; | 211 | u32 enabled; |
212 | }; | 212 | }; |
213 | 213 | ||
214 | #define SI4713_NUM_SUPPLIES 2 | ||
215 | |||
214 | /* | 216 | /* |
215 | * si4713_device - private data | 217 | * si4713_device - private data |
216 | */ | 218 | */ |
@@ -220,11 +222,12 @@ struct si4713_device { | |||
220 | /* private data structures */ | 222 | /* private data structures */ |
221 | struct mutex mutex; | 223 | struct mutex mutex; |
222 | struct completion work; | 224 | struct completion work; |
223 | struct si4713_platform_data *platform_data; | ||
224 | struct rds_info rds_info; | 225 | struct rds_info rds_info; |
225 | struct limiter_info limiter_info; | 226 | struct limiter_info limiter_info; |
226 | struct pilot_info pilot_info; | 227 | struct pilot_info pilot_info; |
227 | struct acomp_info acomp_info; | 228 | struct acomp_info acomp_info; |
229 | struct regulator_bulk_data supplies[SI4713_NUM_SUPPLIES]; | ||
230 | int gpio_reset; | ||
228 | u32 frequency; | 231 | u32 frequency; |
229 | u32 preemphasis; | 232 | u32 preemphasis; |
230 | u32 mute; | 233 | u32 mute; |