aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2013-01-24 17:28:57 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-05 11:52:46 -0500
commit480d3ca13e64ab06200ab2c4dbff462c2ac7494d (patch)
tree97d33ced1aebe59cc16c9cfbffc154c24426d8fd /drivers/media/radio/si470x
parent58bc8b7e380554d2d32f8d7f776a019cefc8afbf (diff)
[media] radio/si470x/radio-si470x.h: use IS_ENABLED() macro
replace: #if defined(CONFIG_USB_SI470X) || \ defined(CONFIG_USB_SI470X_MODULE) with: #if IS_ENABLED(CONFIG_USB_SI470X) This change was made for: CONFIG_USB_SI470X, CONFIG_I2C_SI470X Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/si470x')
-rw-r--r--drivers/media/radio/si470x/radio-si470x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x.h b/drivers/media/radio/si470x/radio-si470x.h
index 2f089b4252df..467e95575488 100644
--- a/drivers/media/radio/si470x/radio-si470x.h
+++ b/drivers/media/radio/si470x/radio-si470x.h
@@ -163,7 +163,7 @@ struct si470x_device {
163 struct completion completion; 163 struct completion completion;
164 bool status_rssi_auto_update; /* Does RSSI get updated automatic? */ 164 bool status_rssi_auto_update; /* Does RSSI get updated automatic? */
165 165
166#if defined(CONFIG_USB_SI470X) || defined(CONFIG_USB_SI470X_MODULE) 166#if IS_ENABLED(CONFIG_USB_SI470X)
167 /* reference to USB and video device */ 167 /* reference to USB and video device */
168 struct usb_device *usbdev; 168 struct usb_device *usbdev;
169 struct usb_interface *intf; 169 struct usb_interface *intf;
@@ -179,7 +179,7 @@ struct si470x_device {
179 unsigned char hardware_version; 179 unsigned char hardware_version;
180#endif 180#endif
181 181
182#if defined(CONFIG_I2C_SI470X) || defined(CONFIG_I2C_SI470X_MODULE) 182#if IS_ENABLED(CONFIG_I2C_SI470X)
183 struct i2c_client *client; 183 struct i2c_client *client;
184#endif 184#endif
185}; 185};