History

mfd / platform / iio: cros_ec: Register sensor through sensorhub

Remove the duplicated code in MFD, since MFD just registers cros-ec-sensorhub if at least one sensor is present. Change IIO cros-ec driver to get the pointer to the cros-ec-dev through cros-ec-sensorhub.

Gwendal Grignou committed 6 years ago

Commit d60ac881 parent 53067477 files · +23 −218Browse files

Showing the changes to include/linux (2 of 7 files). Show all

Unified · Split

2 files
  1. include/linux/platform_data/cros_ec_proto.h +0 −8
  2. include/linux/platform_data/cros_ec_sensorhub.h +8 −0
include/linux/platform_data/cros_ec_proto.h+0−8
@@ -168,14 +168,6 @@ struct cros_ec_device { · 167 unmodified lines
168168 struct platform_device *pd;
169169 };
170170
171−/**
172− * struct cros_ec_sensor_platform - ChromeOS EC sensor platform information.
173− * @sensor_num: Id of the sensor, as reported by the EC.
174− */
175−struct cros_ec_sensor_platform {
176− u8 sensor_num;
177−};
178−
179171 /**
180172 * struct cros_ec_platform - ChromeOS EC platform information.
181173 * @ec_name: Name of EC device (e.g. 'cros-ec', 'cros-pd', ...)
include/linux/platform_data/cros_ec_sensorhub.h+8−0
@@ -10,6 +10,14 @@ · 9 unmodified lines
1010
1111 #include <linux/platform_data/cros_ec_commands.h>
1212
13+/**
14+ * struct cros_ec_sensor_platform - ChromeOS EC sensor platform information.
15+ * @sensor_num: Id of the sensor, as reported by the EC.
16+ */
17+struct cros_ec_sensor_platform {
18+ u8 sensor_num;
19+};
20+
1321 /**
1422 * struct cros_ec_sensorhub - Sensor Hub device data.
1523 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t