Commit 4e3599a5 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (9256): cx22702: Checkpatch compliance

cx22702: Checkpatch compliance
Signed-off-by: default avatarSteven Toth <stoth@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5c2a164a
This diff is collapsed.
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
#include <linux/dvb/frontend.h> #include <linux/dvb/frontend.h>
struct cx22702_config struct cx22702_config {
{
/* the demodulator's i2c address */ /* the demodulator's i2c address */
u8 demod_address; u8 demod_address;
...@@ -41,16 +40,19 @@ struct cx22702_config ...@@ -41,16 +40,19 @@ struct cx22702_config
u8 output_mode; u8 output_mode;
}; };
#if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) && defined(MODULE)) #if defined(CONFIG_DVB_CX22702) || (defined(CONFIG_DVB_CX22702_MODULE) \
extern struct dvb_frontend* cx22702_attach(const struct cx22702_config* config, && defined(MODULE))
struct i2c_adapter* i2c); extern struct dvb_frontend *cx22702_attach(
const struct cx22702_config *config,
struct i2c_adapter *i2c);
#else #else
static inline struct dvb_frontend* cx22702_attach(const struct cx22702_config* config, static inline struct dvb_frontend *cx22702_attach(
struct i2c_adapter* i2c) const struct cx22702_config *config,
struct i2c_adapter *i2c)
{ {
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL; return NULL;
} }
#endif // CONFIG_DVB_CX22702 #endif
#endif // CX22702_H #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment