提交 f9d91de0 编写于 作者: S Sudeep Holla

firmware: arm_scpi: remove dvfs_get packed structure

dvfs_get packed structure is used to read the DVFS/OPP index from the
firmware. It just contains a single byte that needs no packing making
the whole structure defination unnecessary.

This patch replaces the unnecessary dvfs_get packed structure with an
unsigned byte.
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
上级 1a695a90
...@@ -210,10 +210,6 @@ struct dvfs_info { ...@@ -210,10 +210,6 @@ struct dvfs_info {
} opps[MAX_DVFS_OPPS]; } opps[MAX_DVFS_OPPS];
} __packed; } __packed;
struct dvfs_get {
u8 index;
} __packed;
struct dvfs_set { struct dvfs_set {
u8 domain; u8 domain;
u8 index; u8 index;
...@@ -431,11 +427,11 @@ static int scpi_clk_set_val(u16 clk_id, unsigned long rate) ...@@ -431,11 +427,11 @@ static int scpi_clk_set_val(u16 clk_id, unsigned long rate)
static int scpi_dvfs_get_idx(u8 domain) static int scpi_dvfs_get_idx(u8 domain)
{ {
int ret; int ret;
struct dvfs_get dvfs; u8 dvfs_idx;
ret = scpi_send_message(SCPI_CMD_GET_DVFS, &domain, sizeof(domain), ret = scpi_send_message(SCPI_CMD_GET_DVFS, &domain, sizeof(domain),
&dvfs, sizeof(dvfs)); &dvfs_idx, sizeof(dvfs_idx));
return ret ? ret : dvfs.index; return ret ? ret : dvfs_idx;
} }
static int scpi_dvfs_set_idx(u8 domain, u8 index) static int scpi_dvfs_set_idx(u8 domain, u8 index)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册