firmware: arm_scmi: Fix trivial whitespace/coding style issues
Fix couple of unnecessary multiple blank lines and spaces instead of tabs. No functional change. Message-Id: <20240827143838.1465913-2-sudeep.holla@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
This commit is contained in:
parent
1780e411ef
commit
50db2ef5c7
@ -42,7 +42,6 @@ struct scmi_msg_resp_base_discover_agent {
|
|||||||
u8 name[SCMI_SHORT_NAME_MAX_SIZE];
|
u8 name[SCMI_SHORT_NAME_MAX_SIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct scmi_msg_base_error_notify {
|
struct scmi_msg_base_error_notify {
|
||||||
__le32 event_control;
|
__le32 event_control;
|
||||||
#define BASE_TP_NOTIFY_ALL BIT(0)
|
#define BASE_TP_NOTIFY_ALL BIT(0)
|
||||||
@ -105,7 +104,6 @@ scmi_base_vendor_id_get(const struct scmi_protocol_handle *ph, bool sub_vendor)
|
|||||||
struct scmi_xfer *t;
|
struct scmi_xfer *t;
|
||||||
struct scmi_revision_info *rev = ph->get_priv(ph);
|
struct scmi_revision_info *rev = ph->get_priv(ph);
|
||||||
|
|
||||||
|
|
||||||
if (sub_vendor) {
|
if (sub_vendor) {
|
||||||
cmd = BASE_DISCOVER_SUB_VENDOR;
|
cmd = BASE_DISCOVER_SUB_VENDOR;
|
||||||
vendor_id = rev->sub_vendor_id;
|
vendor_id = rev->sub_vendor_id;
|
||||||
|
@ -365,6 +365,7 @@ static int scmi_clock_attributes_get(const struct scmi_protocol_handle *ph,
|
|||||||
ret = ph->xops->do_xfer(ph, t);
|
ret = ph->xops->do_xfer(ph, t);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
u32 latency = 0;
|
u32 latency = 0;
|
||||||
|
|
||||||
attributes = le32_to_cpu(attr->attributes);
|
attributes = le32_to_cpu(attr->attributes);
|
||||||
strscpy(clk->name, attr->name, SCMI_SHORT_NAME_MAX_SIZE);
|
strscpy(clk->name, attr->name, SCMI_SHORT_NAME_MAX_SIZE);
|
||||||
/* clock_enable_latency field is present only since SCMI v3.1 */
|
/* clock_enable_latency field is present only since SCMI v3.1 */
|
||||||
|
@ -1030,7 +1030,6 @@ scmi_xfer_command_acquire(struct scmi_chan_info *cinfo, u32 msg_hdr)
|
|||||||
scmi_bad_message_trace(cinfo, msg_hdr, MSG_INVALID);
|
scmi_bad_message_trace(cinfo, msg_hdr, MSG_INVALID);
|
||||||
scmi_inc_count(info->dbg->counters, ERR_MSG_INVALID);
|
scmi_inc_count(info->dbg->counters, ERR_MSG_INVALID);
|
||||||
|
|
||||||
|
|
||||||
/* On error the refcount incremented above has to be dropped */
|
/* On error the refcount incremented above has to be dropped */
|
||||||
__scmi_xfer_put(minfo, xfer);
|
__scmi_xfer_put(minfo, xfer);
|
||||||
xfer = ERR_PTR(-EINVAL);
|
xfer = ERR_PTR(-EINVAL);
|
||||||
|
@ -310,7 +310,7 @@ scmi_perf_domain_attributes_get(const struct scmi_protocol_handle *ph,
|
|||||||
}
|
}
|
||||||
if (!dom_info->mult_factor)
|
if (!dom_info->mult_factor)
|
||||||
dev_warn(ph->dev,
|
dev_warn(ph->dev,
|
||||||
"Wrong sustained perf/frequency(domain %d)\n",
|
"Wrong sustained perf/frequency(domain %d)\n",
|
||||||
dom_info->id);
|
dom_info->id);
|
||||||
|
|
||||||
strscpy(dom_info->info.name, attr->name,
|
strscpy(dom_info->info.name, attr->name,
|
||||||
|
@ -913,4 +913,5 @@ static const struct scmi_protocol scmi_pinctrl = {
|
|||||||
.ops = &pinctrl_proto_ops,
|
.ops = &pinctrl_proto_ops,
|
||||||
.supported_version = SCMI_PROTOCOL_SUPPORTED_VERSION,
|
.supported_version = SCMI_PROTOCOL_SUPPORTED_VERSION,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(pinctrl, scmi_pinctrl)
|
DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(pinctrl, scmi_pinctrl)
|
||||||
|
@ -238,7 +238,6 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cinfo->transport_info = smbox;
|
cinfo->transport_info = smbox;
|
||||||
smbox->cinfo = cinfo;
|
smbox->cinfo = cinfo;
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ static irqreturn_t smc_msg_done_isr(int irq, void *data)
|
|||||||
static bool smc_chan_available(struct device_node *of_node, int idx)
|
static bool smc_chan_available(struct device_node *of_node, int idx)
|
||||||
{
|
{
|
||||||
struct device_node *np = of_parse_phandle(of_node, "shmem", 0);
|
struct device_node *np = of_parse_phandle(of_node, "shmem", 0);
|
||||||
|
|
||||||
if (!np)
|
if (!np)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user