summaryrefslogtreecommitdiffstats
path: root/firmware/edgeport
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2010-04-26 22:10:52 +0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-05-02 23:41:53 +0400
commitab6cc8f9b716a3d0a41b42cd81d392183211a7f2 (patch)
tree42d9c5144593690790656e55bf1405037ddeb32d /firmware/edgeport
parent9b9ade6b612e562c4a5bd02ef38cc32e10f3f9ba (diff)
downloadlinux-ab6cc8f9b716a3d0a41b42cd81d392183211a7f2.tar.gz
linux-ab6cc8f9b716a3d0a41b42cd81d392183211a7f2.tar.bz2
linux-ab6cc8f9b716a3d0a41b42cd81d392183211a7f2.zip
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: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Mike Rapoport <mike@compulab.co.il>
Diffstat (limited to 'firmware/edgeport')
0 files changed, 0 insertions, 0 deletions