Skip to content

Commit b03129f

Browse files
palosaarimchehab
authored andcommitted
[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>
1 parent 8a878dc commit b03129f

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎drivers/media/tuners/m88ts2022.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
1515
*
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-
*
2016
* Some calculations are taken from existing TS2020 driver.
2117
*/
2218

@@ -548,7 +544,7 @@ static int m88ts2022_probe(struct i2c_client *client,
548544
int ret;
549545
u8 chip_id, u8tmp;
550546

551-
priv = kzalloc(sizeof(struct m88ts2022_priv), GFP_KERNEL);
547+
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
552548
if (!priv) {
553549
ret = -ENOMEM;
554550
dev_err(&client->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME);

‎drivers/media/tuners/m88ts2022.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* 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.
1915
*/
2016

2117
#ifndef M88TS2022_H

‎drivers/media/tuners/m88ts2022_priv.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* 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.
1915
*/
2016

2117
#ifndef M88TS2022_PRIV_H

0 commit comments

Comments
 (0)