Commit 17431b78 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Sudeep Holla

firmware: arm_scpi: remove struct sensor_capabilities

One more single-element struct was left, remove it.
Tested-by: default avatarKevin Hilman <khilman@baylibre.com>
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent 5204abd3
...@@ -331,10 +331,6 @@ struct dvfs_set { ...@@ -331,10 +331,6 @@ struct dvfs_set {
u8 index; u8 index;
} __packed; } __packed;
struct sensor_capabilities {
__le16 sensors;
} __packed;
struct _scpi_sensor_info { struct _scpi_sensor_info {
__le16 sensor_id; __le16 sensor_id;
u8 class; u8 class;
...@@ -730,13 +726,13 @@ static int scpi_dvfs_add_opps_to_device(struct device *dev) ...@@ -730,13 +726,13 @@ static int scpi_dvfs_add_opps_to_device(struct device *dev)
static int scpi_sensor_get_capability(u16 *sensors) static int scpi_sensor_get_capability(u16 *sensors)
{ {
struct sensor_capabilities cap_buf; __le16 cap;
int ret; int ret;
ret = scpi_send_message(CMD_SENSOR_CAPABILITIES, NULL, 0, &cap_buf, ret = scpi_send_message(CMD_SENSOR_CAPABILITIES, NULL, 0, &cap,
sizeof(cap_buf)); sizeof(cap));
if (!ret) if (!ret)
*sensors = le16_to_cpu(cap_buf.sensors); *sensors = le16_to_cpu(cap);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment