Skip to content
Commit ab6cc8f9 authored by Anton Vorontsov's avatar Anton Vorontsov
Browse files

ds2782_battery: Get rid of magic numbers in driver_data



Constructions like 'if (id->driver_data == 1)' look quite weird.
This patch introduces 'enum ds278x_num_id', which makes things
much more understandable, i.e. 'if (id->driver_data == DS2786)'.

Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
Acked-by: default avatarMike Rapoport <mike@compulab.co.il>
parent 9b9ade6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment