OSDN Git Service

platform/chrome: wilco_ec: Platform data shouldn't include kernel.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Feb 2020 09:48:28 +0000 (11:48 +0200)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 11 Feb 2020 09:32:50 +0000 (10:32 +0100)
commit8673e944b50ec6e5afd4f599cf12b2798b629f3d
treebb8de5a2db0a59a4ea1813e38044ba7eda208562
parent2b63eb961ade6c47132d649ec89a48e18754e169
platform/chrome: wilco_ec: Platform data shouldn't include kernel.h

Replace with appropriate types.h.

Also there is no need to include device.h, but mutex.h.
For the pointers to unknown structures use forward declarations.

In the *.c files we need to include all headers that provide APIs
being used in the module.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/wilco_ec/properties.c
drivers/platform/chrome/wilco_ec/sysfs.c
include/linux/platform_data/wilco-ec.h