]> asedeno.scripts.mit.edu Git - linux.git/commit
cros_ec: treewide: Remove 'include/linux/mfd/cros_ec.h'
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 3 Dec 2019 14:50:18 +0000 (15:50 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 7 Jan 2020 16:36:46 +0000 (17:36 +0100)
commit11f1eabee0ba0aafe023ad92d1e3c29d0a96683e
tree448b51138a2b3012f61f9ffd40d173fd0f95a165
parente054d71836f047743f910f97bd13dcd49116c146
cros_ec: treewide: Remove 'include/linux/mfd/cros_ec.h'

This header file now only includes the cros_ec_dev struct, however, is the
'include/linux/platform_data/cros_ec_proto.h' who contains the definition of
all the Chrome OS EC related structs. There is no reason to have a
separate include for this struct so move to the place where other
structs are defined. That way, we can remove the include itself, but also
simplify the common pattern

    #include <linux/mfd/cros_ec.h>
    #include <linux/platform_data/cros_ec_proto.h>

for a single include

    #include <linux/platform_data/cros_ec_proto.h>

The changes to remove the cros_ec.h include were generated with the
following shell script:

    git grep -l "<linux/mfd/cros_ec.h>" | xargs sed -i '/<linux\/mfd\/cros_ec.h>/d'

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
18 files changed:
drivers/iio/accel/cros_ec_accel_legacy.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
drivers/iio/light/cros_ec_light_prox.c
drivers/iio/pressure/cros_ec_baro.c
drivers/media/platform/cros-ec-cec/cros-ec-cec.c
drivers/mfd/cros_ec_dev.c
drivers/platform/chrome/cros_ec_chardev.c
drivers/platform/chrome/cros_ec_debugfs.c
drivers/platform/chrome/cros_ec_lightbar.c
drivers/platform/chrome/cros_ec_sensorhub.c
drivers/platform/chrome/cros_ec_sysfs.c
drivers/platform/chrome/cros_ec_vbc.c
drivers/platform/chrome/cros_usbpd_logger.c
drivers/power/supply/cros_usbpd-charger.c
drivers/rtc/rtc-cros-ec.c
include/linux/mfd/cros_ec.h [deleted file]
include/linux/platform_data/cros_ec_proto.h