diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2013-03-29 16:22:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-31 10:16:54 -0400 |
commit | 6bf7861fa2bb4be3cc70a6e9aed664ce65270027 (patch) | |
tree | cd5f848fe9f3b21ee837b94617a9a37a15a03bd4 | |
parent | b0efc3ed0530b08e9e1cba5f63e9c251ca3d7428 (diff) |
[media] si476x: Fix some config dependencies and a compile warnings
radio-si476x depends on SND and SND_SOC, the mfd driver should select
REGMAP_I2C.
Also fix a small compile warning in a debug message:
drivers/mfd/si476x-i2c.c: In function ‘si476x_core_drain_rds_fifo’:
drivers/mfd/si476x-i2c.c:391:4: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/radio/Kconfig | 2 | ||||
-rw-r--r-- | drivers/mfd/Kconfig | 1 | ||||
-rw-r--r-- | drivers/mfd/si476x-i2c.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/radio/Kconfig b/drivers/media/radio/Kconfig index 28ded247abc0..fef427e386c1 100644 --- a/drivers/media/radio/Kconfig +++ b/drivers/media/radio/Kconfig | |||
@@ -20,7 +20,7 @@ source "drivers/media/radio/si470x/Kconfig" | |||
20 | 20 | ||
21 | config RADIO_SI476X | 21 | config RADIO_SI476X |
22 | tristate "Silicon Laboratories Si476x I2C FM Radio" | 22 | tristate "Silicon Laboratories Si476x I2C FM Radio" |
23 | depends on I2C && VIDEO_V4L2 | 23 | depends on I2C && VIDEO_V4L2 && SND && SND_SOC |
24 | select MFD_CORE | 24 | select MFD_CORE |
25 | select MFD_SI476X_CORE | 25 | select MFD_SI476X_CORE |
26 | select SND_SOC_SI476X | 26 | select SND_SOC_SI476X |
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 9b80e1edeeb6..2f97ad188fc2 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig | |||
@@ -980,6 +980,7 @@ config MFD_SI476X_CORE | |||
980 | tristate "Support for Silicon Laboratories 4761/64/68 AM/FM radio." | 980 | tristate "Support for Silicon Laboratories 4761/64/68 AM/FM radio." |
981 | depends on I2C | 981 | depends on I2C |
982 | select MFD_CORE | 982 | select MFD_CORE |
983 | select REGMAP_I2C | ||
983 | help | 984 | help |
984 | This is the core driver for the SI476x series of AM/FM | 985 | This is the core driver for the SI476x series of AM/FM |
985 | radio. This MFD driver connects the radio-si476x V4L2 module | 986 | radio. This MFD driver connects the radio-si476x V4L2 module |
diff --git a/drivers/mfd/si476x-i2c.c b/drivers/mfd/si476x-i2c.c index 118c6b13d8cb..f5bc8e4bd4bf 100644 --- a/drivers/mfd/si476x-i2c.c +++ b/drivers/mfd/si476x-i2c.c | |||
@@ -389,7 +389,7 @@ static void si476x_core_drain_rds_fifo(struct work_struct *work) | |||
389 | kfifo_in(&core->rds_fifo, report.rds, | 389 | kfifo_in(&core->rds_fifo, report.rds, |
390 | sizeof(report.rds)); | 390 | sizeof(report.rds)); |
391 | dev_dbg(&core->client->dev, "RDS data:\n %*ph\n", | 391 | dev_dbg(&core->client->dev, "RDS data:\n %*ph\n", |
392 | sizeof(report.rds), report.rds); | 392 | (int)sizeof(report.rds), report.rds); |
393 | } | 393 | } |
394 | dev_dbg(&core->client->dev, "Drrrrained!\n"); | 394 | dev_dbg(&core->client->dev, "Drrrrained!\n"); |
395 | wake_up_interruptible(&core->rds_read_queue); | 395 | wake_up_interruptible(&core->rds_read_queue); |