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
168 struct platform_device *pd;168 struct platform_device *pd;
169};169};
170 170
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 */
175struct cros_ec_sensor_platform {
176 u8 sensor_num;
177};
178
179/**171/**
180 * struct cros_ec_platform - ChromeOS EC platform information.172 * struct cros_ec_platform - ChromeOS EC platform information.
181 * @ec_name: Name of EC device (e.g. 'cros-ec', 'cros-pd', ...)173 * @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
10 10
11#include <linux/platform_data/cros_ec_commands.h>11#include <linux/platform_data/cros_ec_commands.h>
12 12
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 */
17struct cros_ec_sensor_platform {
18 u8 sensor_num;
19};
20
13/**21/**
14 * struct cros_ec_sensorhub - Sensor Hub device data.22 * struct cros_ec_sensorhub - Sensor Hub device data.
15 *23 *

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