| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * I2C client/driver for the Linear Technology LTC2941, LTC2942, LTC2943 |
|---|
| 3 | 4 | * and LTC2944 Battery Gas Gauge IC |
|---|
| .. | .. |
|---|
| 472 | 473 | |
|---|
| 473 | 474 | np = of_node_get(client->dev.of_node); |
|---|
| 474 | 475 | |
|---|
| 475 | | - info->id = (enum ltc294x_id)of_device_get_match_data(&client->dev); |
|---|
| 476 | + info->id = (enum ltc294x_id) (uintptr_t) of_device_get_match_data( |
|---|
| 477 | + &client->dev); |
|---|
| 476 | 478 | info->supply_desc.name = np->name; |
|---|
| 477 | 479 | |
|---|
| 478 | 480 | /* r_sense can be negative, when sense+ is connected to the battery |
|---|