| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * BQ27xxx battery monitor I2C driver |
|---|
| 3 | 4 | * |
|---|
| 4 | | - * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 5 | + * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 5 | 6 | * Andrew F. Davis <afd@ti.com> |
|---|
| 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 version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
|---|
| 12 | | - * kind, whether express or implied; without even the implied warranty |
|---|
| 13 | | - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | 7 | */ |
|---|
| 16 | 8 | |
|---|
| 17 | 9 | #include <linux/i2c.h> |
|---|
| .. | .. |
|---|
| 187 | 179 | i2c_set_clientdata(client, di); |
|---|
| 188 | 180 | |
|---|
| 189 | 181 | if (client->irq) { |
|---|
| 190 | | - ret = devm_request_threaded_irq(&client->dev, client->irq, |
|---|
| 182 | + ret = request_threaded_irq(client->irq, |
|---|
| 191 | 183 | NULL, bq27xxx_battery_irq_handler_thread, |
|---|
| 192 | 184 | IRQF_ONESHOT, |
|---|
| 193 | 185 | di->name, di); |
|---|
| .. | .. |
|---|
| 217 | 209 | { |
|---|
| 218 | 210 | struct bq27xxx_device_info *di = i2c_get_clientdata(client); |
|---|
| 219 | 211 | |
|---|
| 212 | + free_irq(client->irq, di); |
|---|
| 220 | 213 | bq27xxx_battery_teardown(di); |
|---|
| 221 | 214 | |
|---|
| 222 | 215 | mutex_lock(&battery_mutex); |
|---|
| .. | .. |
|---|
| 248 | 241 | { "bq27546", BQ27546 }, |
|---|
| 249 | 242 | { "bq27742", BQ27742 }, |
|---|
| 250 | 243 | { "bq27545", BQ27545 }, |
|---|
| 244 | + { "bq27411", BQ27411 }, |
|---|
| 251 | 245 | { "bq27421", BQ27421 }, |
|---|
| 252 | 246 | { "bq27425", BQ27425 }, |
|---|
| 253 | 247 | { "bq27426", BQ27426 }, |
|---|
| 254 | 248 | { "bq27441", BQ27441 }, |
|---|
| 255 | 249 | { "bq27621", BQ27621 }, |
|---|
| 250 | + { "bq27z561", BQ27Z561 }, |
|---|
| 251 | + { "bq28z610", BQ28Z610 }, |
|---|
| 252 | + { "bq34z100", BQ34Z100 }, |
|---|
| 256 | 253 | {}, |
|---|
| 257 | 254 | }; |
|---|
| 258 | 255 | MODULE_DEVICE_TABLE(i2c, bq27xxx_i2c_id_table); |
|---|
| .. | .. |
|---|
| 280 | 277 | { .compatible = "ti,bq27546" }, |
|---|
| 281 | 278 | { .compatible = "ti,bq27742" }, |
|---|
| 282 | 279 | { .compatible = "ti,bq27545" }, |
|---|
| 280 | + { .compatible = "ti,bq27411" }, |
|---|
| 283 | 281 | { .compatible = "ti,bq27421" }, |
|---|
| 284 | 282 | { .compatible = "ti,bq27425" }, |
|---|
| 285 | 283 | { .compatible = "ti,bq27426" }, |
|---|
| 286 | 284 | { .compatible = "ti,bq27441" }, |
|---|
| 287 | 285 | { .compatible = "ti,bq27621" }, |
|---|
| 286 | + { .compatible = "ti,bq27z561" }, |
|---|
| 287 | + { .compatible = "ti,bq28z610" }, |
|---|
| 288 | + { .compatible = "ti,bq34z100" }, |
|---|
| 288 | 289 | {}, |
|---|
| 289 | 290 | }; |
|---|
| 290 | 291 | MODULE_DEVICE_TABLE(of, bq27xxx_battery_i2c_of_match_table); |
|---|