firmware: arm_scmi: Fix trivial whitespace/coding style issues
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 27 Aug 2024 14:38:36 +0000 (15:38 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Wed, 28 Aug 2024 16:16:25 +0000 (17:16 +0100)
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>
drivers/firmware/arm_scmi/base.c
drivers/firmware/arm_scmi/clock.c
drivers/firmware/arm_scmi/driver.c
drivers/firmware/arm_scmi/perf.c
drivers/firmware/arm_scmi/pinctrl.c
drivers/firmware/arm_scmi/transports/mailbox.c
drivers/firmware/arm_scmi/transports/smc.c

index 9939b1d84b7a6d19e83fb8a5c21d2f4107379b02..d52873523cd2bd75ac95bc27cac018391c40e6ff 100644 (file)
@@ -42,7 +42,6 @@ struct scmi_msg_resp_base_discover_agent {
        u8 name[SCMI_SHORT_NAME_MAX_SIZE];
 };
 
-
 struct scmi_msg_base_error_notify {
        __le32 event_control;
 #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_revision_info *rev = ph->get_priv(ph);
 
-
        if (sub_vendor) {
                cmd = BASE_DISCOVER_SUB_VENDOR;
                vendor_id = rev->sub_vendor_id;
index 134019297d08b1bd9e4b02e69a1cc16a3dc429b2..2ed2279388f02eff63c9ef977571eb048d42ad81 100644 (file)
@@ -365,6 +365,7 @@ static int scmi_clock_attributes_get(const struct scmi_protocol_handle *ph,
        ret = ph->xops->do_xfer(ph, t);
        if (!ret) {
                u32 latency = 0;
+
                attributes = le32_to_cpu(attr->attributes);
                strscpy(clk->name, attr->name, SCMI_SHORT_NAME_MAX_SIZE);
                /* clock_enable_latency field is present only since SCMI v3.1 */
index 66806578df5a568131aa2370726a71bdb67d8f55..69c15135371ca5dd97927976dff283b62bfe0b42 100644 (file)
@@ -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_inc_count(info->dbg->counters, ERR_MSG_INVALID);
 
-
                /* On error the refcount incremented above has to be dropped */
                __scmi_xfer_put(minfo, xfer);
                xfer = ERR_PTR(-EINVAL);
index 4b7f1cbb9b04d6b3388a9382cb8f2d315f1cc966..2d77b5f40ca710642849ed2e22a02df5c97e68e6 100644 (file)
@@ -310,7 +310,7 @@ scmi_perf_domain_attributes_get(const struct scmi_protocol_handle *ph,
                }
                if (!dom_info->mult_factor)
                        dev_warn(ph->dev,
-                                "Wrong sustained perf/frequency(domain %d)\n",
+                                "Wrong sustained perf/frequency(domain %d)\n",
                                 dom_info->id);
 
                strscpy(dom_info->info.name, attr->name,
index a2a7f880d6a32de113deb76c91c5016bec1f42e0..3855c98caf06bd9b32043a42e6678791b71424f4 100644 (file)
@@ -913,4 +913,5 @@ static const struct scmi_protocol scmi_pinctrl = {
        .ops = &pinctrl_proto_ops,
        .supported_version = SCMI_PROTOCOL_SUPPORTED_VERSION,
 };
+
 DEFINE_SCMI_PROTOCOL_REGISTER_UNREGISTER(pinctrl, scmi_pinctrl)
index a481a286606233aadd88dab6250b728d4a210a71..9d258f5d5da8f5cd0cada0f3a5f41f3f1eb1bddf 100644 (file)
@@ -238,7 +238,6 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,
                }
        }
 
-
        cinfo->transport_info = smbox;
        smbox->cinfo = cinfo;
 
index b7243939f1618df052bc13c9963b423ddd1d70ee..2ffed5280eab26f6d932cd23cfb7ec7075e2f12e 100644 (file)
@@ -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)
 {
        struct device_node *np = of_parse_phandle(of_node, "shmem", 0);
+
        if (!np)
                return false;