mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-14 09:47:20 +00:00
V4L/DVB (8014): gl861: coding style fixes
- coding style fixes raised by checkpatch Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
17d9d558e8
commit
fb49558c3b
@ -1,8 +1,8 @@
|
|||||||
/* DVB USB compliant linux driver for GL861 USB2.0 devices.
|
/* DVB USB compliant linux driver for GL861 USB2.0 devices.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms of the GNU General Public License as published by the Free
|
* under the terms of the GNU General Public License as published by the
|
||||||
* Software Foundation, version 2.
|
* Free Software Foundation, version 2.
|
||||||
*
|
*
|
||||||
* see Documentation/dvb/README.dvb-usb for more information
|
* see Documentation/dvb/README.dvb-usb for more information
|
||||||
*/
|
*/
|
||||||
@ -14,8 +14,8 @@
|
|||||||
/* debug */
|
/* debug */
|
||||||
static int dvb_usb_gl861_debug;
|
static int dvb_usb_gl861_debug;
|
||||||
module_param_named(debug, dvb_usb_gl861_debug, int, 0644);
|
module_param_named(debug, dvb_usb_gl861_debug, int, 0644);
|
||||||
MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS);
|
MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))."
|
||||||
|
DVB_USB_DEBUG_STATUS);
|
||||||
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
|
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
|
||||||
|
|
||||||
static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr,
|
static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr,
|
||||||
@ -102,12 +102,13 @@ static struct zl10353_config gl861_zl10353_config = {
|
|||||||
|
|
||||||
static int gl861_frontend_attach(struct dvb_usb_adapter *adap)
|
static int gl861_frontend_attach(struct dvb_usb_adapter *adap)
|
||||||
{
|
{
|
||||||
if ((adap->fe = dvb_attach(zl10353_attach, &gl861_zl10353_config,
|
|
||||||
&adap->dev->i2c_adap)) != NULL) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
adap->fe = dvb_attach(zl10353_attach, &gl861_zl10353_config,
|
||||||
|
&adap->dev->i2c_adap);
|
||||||
|
if (adap->fe == NULL)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct qt1010_config gl861_qt1010_config = {
|
static struct qt1010_config gl861_qt1010_config = {
|
||||||
@ -210,12 +211,11 @@ static int __init gl861_module_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((ret = usb_register(&gl861_driver))) {
|
ret = usb_register(&gl861_driver);
|
||||||
|
if (ret)
|
||||||
err("usb_register failed. Error number %d", ret);
|
err("usb_register failed. Error number %d", ret);
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit gl861_module_exit(void)
|
static void __exit gl861_module_exit(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user