sbs-battery.c (762f99f4f3cb41a775b5157dd761217beba65873) sbs-battery.c (fe20b1dcd2de47cdc983a47f4fb7a781e0b6c39c)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Gas Gauge driver for SBS Compliant Batteries
4 *
5 * Copyright (c) 2010, NVIDIA Corporation.
6 */
7
8#include <linux/bits.h>

--- 1261 unchanged lines hidden (view full) ---

1270 .compatible = "ti,bq20z75",
1271 .data = (void *)SBS_FLAGS_TI_BQ20ZX5,
1272 },
1273 { }
1274};
1275MODULE_DEVICE_TABLE(of, sbs_dt_ids);
1276
1277static struct i2c_driver sbs_battery_driver = {
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Gas Gauge driver for SBS Compliant Batteries
4 *
5 * Copyright (c) 2010, NVIDIA Corporation.
6 */
7
8#include <linux/bits.h>

--- 1261 unchanged lines hidden (view full) ---

1270 .compatible = "ti,bq20z75",
1271 .data = (void *)SBS_FLAGS_TI_BQ20ZX5,
1272 },
1273 { }
1274};
1275MODULE_DEVICE_TABLE(of, sbs_dt_ids);
1276
1277static struct i2c_driver sbs_battery_driver = {
1278 .probe_new = sbs_probe,
1278 .probe = sbs_probe,
1279 .alert = sbs_alert,
1280 .id_table = sbs_id,
1281 .driver = {
1282 .name = "sbs-battery",
1283 .of_match_table = sbs_dt_ids,
1284 .pm = SBS_PM_OPS,
1285 },
1286};
1287module_i2c_driver(sbs_battery_driver);
1288
1289MODULE_DESCRIPTION("SBS battery monitor driver");
1290MODULE_LICENSE("GPL");
1291
1292module_param(force_load, bool, 0444);
1293MODULE_PARM_DESC(force_load,
1294 "Attempt to load the driver even if no battery is connected");
1279 .alert = sbs_alert,
1280 .id_table = sbs_id,
1281 .driver = {
1282 .name = "sbs-battery",
1283 .of_match_table = sbs_dt_ids,
1284 .pm = SBS_PM_OPS,
1285 },
1286};
1287module_i2c_driver(sbs_battery_driver);
1288
1289MODULE_DESCRIPTION("SBS battery monitor driver");
1290MODULE_LICENSE("GPL");
1291
1292module_param(force_load, bool, 0444);
1293MODULE_PARM_DESC(force_load,
1294 "Attempt to load the driver even if no battery is connected");