media: ddbridge, cxd2099: include guard, fix unneeded NULL init, strings
authorDaniel Scheller <d.scheller@gmx.net>
Sat, 17 Mar 2018 14:55:32 +0000 (10:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 18:20:24 +0000 (14:20 -0400)
Three really tiny minors in this single commit which all on their own
would just clutter up the commit history unnecessarily:

* ddbridge-regs.h is lacking an include guard. Add it.
* Fix an unnecessary NULL initialisation in ddbridge-ci. The declaration
  of the ci struct ptr is immediately followed by kzalloc().
* Clarify that the CXD2099AR is a Sony device in the cxd2099 driver at a
  few places including Kconfig.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Acked-by: Jasmin Jessich <jasmin@anw.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/Kconfig
drivers/media/dvb-frontends/cxd2099.c
drivers/media/dvb-frontends/cxd2099.h
drivers/media/pci/ddbridge/ddbridge-ci.c
drivers/media/pci/ddbridge/ddbridge-regs.h

index 0712069..55e36a4 100644 (file)
@@ -903,7 +903,7 @@ comment "Common Interface (EN50221) controller drivers"
        depends on DVB_CORE
 
 config DVB_CXD2099
-       tristate "CXD2099AR Common Interface driver"
+       tristate "Sony CXD2099AR Common Interface driver"
        depends on DVB_CORE && I2C
        select REGMAP_I2C
        default m if !MEDIA_SUBDRV_AUTOSELECT
index c0a5849..4a0ce30 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * cxd2099.c: Driver for the CXD2099AR Common Interface Controller
+ * cxd2099.c: Driver for the Sony CXD2099AR Common Interface Controller
  *
  * Copyright (C) 2010-2013 Digital Devices GmbH
  *
@@ -699,6 +699,6 @@ static struct i2c_driver cxd2099_driver = {
 
 module_i2c_driver(cxd2099_driver);
 
-MODULE_DESCRIPTION("CXD2099AR Common Interface controller driver");
+MODULE_DESCRIPTION("Sony CXD2099AR Common Interface controller driver");
 MODULE_AUTHOR("Ralph Metzler");
 MODULE_LICENSE("GPL");
index 8fa45a4..ec1910d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * cxd2099.h: Driver for the CXD2099AR Common Interface Controller
+ * cxd2099.h: Driver for the Sony CXD2099AR Common Interface Controller
  *
  * Copyright (C) 2010-2011 Digital Devices GmbH
  *
index a9dbc4e..cfe23d0 100644 (file)
@@ -164,7 +164,7 @@ static struct dvb_ca_en50221 en_templ = {
 
 static void ci_attach(struct ddb_port *port)
 {
-       struct ddb_ci *ci = NULL;
+       struct ddb_ci *ci;
 
        ci = kzalloc(sizeof(*ci), GFP_KERNEL);
        if (!ci)
index 23d74ff..b978b59 100644 (file)
@@ -17,6 +17,9 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
+#ifndef __DDBRIDGE_REGS_H__
+#define __DDBRIDGE_REGS_H__
+
 /* ------------------------------------------------------------------------- */
 /* SPI Controller */
 
 #define LNB_BUF_LEVEL(i)               (LNB_BASE + (i) * 0x20 + 0x10)
 #define LNB_BUF_WRITE(i)               (LNB_BASE + (i) * 0x20 + 0x14)
 
+#endif /* __DDBRIDGE_REGS_H__ */