Skip to content

Commit

Permalink
power: supply: ti: ln8000_charger: Silence pointer to int type warning
Browse files Browse the repository at this point in the history
Clang warns:
 drivers/power/supply/ti/ln8000_charger.c:1447: warning: cast to smaller integer type 'int' from 'const void *' [-Wvoid-pointer-to-int-cast]
     return (int)of_id->data;
            ^~~~~~~~~~~~~~~~

1 warning generated.

Signed-off-by: Shashank Patil <[email protected]>
  • Loading branch information
itsshashanksp committed Jul 4, 2024
1 parent fc208fe commit a9e18ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/ti/ln8000_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ static int ln8000_get_dev_role(struct i2c_client *client)

dev_info(&client->dev,"%s: matched to %s\n", __func__, of_id->compatible);

return (int)of_id->data;
return (long)of_id->data;
}

static int ln8000_parse_dt(struct ln8000_info *info)
Expand Down

0 comments on commit a9e18ea

Please sign in to comment.