History

iio:adc:ina2xx-adc: Suppress clang W=1 warning about pointer to enum conversion.

Cast to a uintptr_t rather than directly to the enum. As per the discussion in below linked media patch.

Jonathan Cameron committed 4 years ago

Commit 702bab81 parent 1155ed01 file · +1 −1Browse files

Unified · Split

drivers/iio/adc/ina2xx-adc.c+1−1
@@ -971,7 +971,7 @@ static int ina2xx_probe(struct i2c_client *client, · 970 unmodified lines
971971 }
972972
973973 if (client->dev.of_node)
974− type = (enum ina2xx_ids)of_device_get_match_data(&client->dev);
974+ type = (uintptr_t)of_device_get_match_data(&client->dev);
975975 else
976976 type = id->driver_data;
977977 chip->config = &ina2xx_config[type];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t