aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-12-18 10:46:45 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-19 06:24:57 -0500
commitb03129ff7b8ed4abe0b80e092ad71a6203c2d367 (patch)
treee1efe028388c5c666e886c4ad5d9a34f1e63f0c0 /drivers
parent8a878dc4f6686ccb2f6e4d72e29825fe3427eeb0 (diff)
[media] m88ts2022: fix some style issues reported by checkpatch.pl
Latest checkpatch.pl has some new requirements for coding style. Fix some of those. * remove Free Software Foundation postal address * use sizeof(*foo), not sizeof(struct foo) Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/tuners/m88ts2022.c6
-rw-r--r--drivers/media/tuners/m88ts2022.h4
-rw-r--r--drivers/media/tuners/m88ts2022_priv.h4
3 files changed, 1 insertions, 13 deletions
diff --git a/drivers/media/tuners/m88ts2022.c b/drivers/media/tuners/m88ts2022.c
index 11556037cca0..40c42dec721b 100644
--- a/drivers/media/tuners/m88ts2022.c
+++ b/drivers/media/tuners/m88ts2022.c
@@ -13,10 +13,6 @@
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Some calculations are taken from existing TS2020 driver. 16 * Some calculations are taken from existing TS2020 driver.
21 */ 17 */
22 18
@@ -548,7 +544,7 @@ static int m88ts2022_probe(struct i2c_client *client,
548 int ret; 544 int ret;
549 u8 chip_id, u8tmp; 545 u8 chip_id, u8tmp;
550 546
551 priv = kzalloc(sizeof(struct m88ts2022_priv), GFP_KERNEL); 547 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
552 if (!priv) { 548 if (!priv) {
553 ret = -ENOMEM; 549 ret = -ENOMEM;
554 dev_err(&client->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME); 550 dev_err(&client->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME);
diff --git a/drivers/media/tuners/m88ts2022.h b/drivers/media/tuners/m88ts2022.h
index 1943b83f41d7..659fa1b1633a 100644
--- a/drivers/media/tuners/m88ts2022.h
+++ b/drivers/media/tuners/m88ts2022.h
@@ -12,10 +12,6 @@
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */ 15 */
20 16
21#ifndef M88TS2022_H 17#ifndef M88TS2022_H
diff --git a/drivers/media/tuners/m88ts2022_priv.h b/drivers/media/tuners/m88ts2022_priv.h
index a1fbb1876040..0363dd866a2d 100644
--- a/drivers/media/tuners/m88ts2022_priv.h
+++ b/drivers/media/tuners/m88ts2022_priv.h
@@ -12,10 +12,6 @@
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details. 14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */ 15 */
20 16
21#ifndef M88TS2022_PRIV_H 17#ifndef M88TS2022_PRIV_H