linux/drivers/platform/chrome
Enric Balletbo i Serra 0545625baa mfd / platform: cros_ec_vbc: Instantiate only if the EC has a VBC NVRAM
The cros-ec-vbc driver is DT-only and there is a DT property that
indicates if the EC has the VCB NVRAM, in such case instantiate the
driver but don't instantiate on the other cases.

To do this move the check code to its parent instead of play with the
attribute group visibility. This changes a bit the actual behaviour.
Before the patch if an EC doesn't have a VBC NVRAM an empty vbc folder
is created in /sys/class/chromeos/<ec-device-name>, after the patch the
empty folder is not created, so, the folder is only created if the vbc
is set.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2019-02-01 08:09:27 +00:00
..
chromeos_laptop.c platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes 2018-05-29 15:11:04 -07:00
chromeos_pstore.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc - Remove unneeded const 2018-10-09 22:40:12 -07:00
cros_ec_debugfs.c mfd / platform: cros_ec: Move debugfs attributes to its own driver 2019-02-01 08:09:27 +00:00
cros_ec_i2c.c mfd / platform: cros_ec: Use devm_mfd_add_devices 2019-02-01 08:09:27 +00:00
cros_ec_lightbar.c mfd / platform: cros_ec: Move device sysfs attributes to its own driver 2019-02-01 08:09:27 +00:00
cros_ec_lpc_mec.c platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. 2018-09-07 15:56:36 +08:00
cros_ec_lpc_mec.h platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. 2018-09-07 15:56:36 +08:00
cros_ec_lpc_reg.c platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. 2018-09-07 15:56:36 +08:00
cros_ec_lpc_reg.h platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. 2018-09-07 15:56:36 +08:00
cros_ec_lpc.c mfd / platform: cros_ec: Use devm_mfd_add_devices 2019-02-01 08:09:27 +00:00
cros_ec_proto.c platform/chrome: don't report EC_MKBP_EVENT_SENSOR_FIFO as wakeup 2018-11-13 21:25:28 -08:00
cros_ec_spi.c mfd / platform: cros_ec: Use devm_mfd_add_devices 2019-02-01 08:09:27 +00:00
cros_ec_sysfs.c mfd / platform: cros_ec: Move device sysfs attributes to its own driver 2019-02-01 08:09:27 +00:00
cros_ec_vbc.c mfd / platform: cros_ec_vbc: Instantiate only if the EC has a VBC NVRAM 2019-02-01 08:09:27 +00:00
cros_kbd_led_backlight.c platform/chrome: Add Chrome OS keyboard backlight LEDs support 2016-05-11 11:55:47 -07:00
Kconfig mfd / platform: cros_ec: Move device sysfs attributes to its own driver 2019-02-01 08:09:27 +00:00
Makefile mfd / platform: cros_ec: Move device sysfs attributes to its own driver 2019-02-01 08:09:27 +00:00