hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/mfd/tps65010.c
....@@ -1,22 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * tps65010 - driver for tps6501x power management chips
34 *
45 * Copyright (C) 2004 Texas Instruments
56 * Copyright (C) 2004-2005 David Brownell
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
207 */
218
229 #include <linux/kernel.h>
....@@ -417,7 +404,6 @@
417404 tps65010_interrupt(tps);
418405
419406 if (test_and_clear_bit(FLAG_VBUS_CHANGED, &tps->flags)) {
420
- int status;
421407 u8 chgconfig, tmp;
422408
423409 chgconfig = i2c_smbus_read_byte_data(tps->client,
....@@ -428,8 +414,8 @@
428414 else if (tps->vbus >= 100)
429415 chgconfig |= TPS_VBUS_CHARGING;
430416
431
- status = i2c_smbus_write_byte_data(tps->client,
432
- TPS_CHGCONFIG, chgconfig);
417
+ i2c_smbus_write_byte_data(tps->client,
418
+ TPS_CHGCONFIG, chgconfig);
433419
434420 /* vbus update fails unless VBUS is connected! */
435421 tmp = i2c_smbus_read_byte_data(tps->client, TPS_CHGCONFIG);