]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging:iio:ad7606: Remove redundant name field from ad7606_chip_info
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2016 17:06:57 +0000 (19:06 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:12 +0000 (19:34 +0100)
commit063a51c5bdefaf7972c6ee7945b05eeb7a842961
tree52ffb819fe7aef34c527f435c5c7cfea3ede6d9e
parent36534b40673510a0bd0a87cdfaf07cb4596a3159
staging:iio:ad7606: Remove redundant name field from ad7606_chip_info

The name field in the ad7606_chip_info struct is set to the same value as
the as the name field in the corresponding {platform,spi}_device_id table
entry. Remove it from the ad7606_chip_info struct and pass the name from
the ID to the probe function. This slightly reduces the size of the
chip_info table and adding new entries requires less boilerplate.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606.h
drivers/staging/iio/adc/ad7606_core.c
drivers/staging/iio/adc/ad7606_par.c
drivers/staging/iio/adc/ad7606_spi.c