From patchwork Mon Oct 9 18:52:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9994067 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 50CBF60216 for ; Mon, 9 Oct 2017 18:57:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 432832881B for ; Mon, 9 Oct 2017 18:57:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 369B52881E; Mon, 9 Oct 2017 18:57:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BDA082881B for ; Mon, 9 Oct 2017 18:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ihd1shMHLuRLnrcFgbMsw2KY89HUhPxoTTwAtdTAilQ=; b=ki9GJCRTYvRhLv HSqUCXWIsKNGel7PHE7UJFgTbN3jDnMkuLGBxm9RzmwdnA9JR1PUO6Uyvxnd1uvEuPF8/X5m7UOgV 2iCpAicou0Xgbv/FnSEMuanM1qKOp+fmPocO17BIzfMuZCPc7ayy8cBHQ5yE3ebR/XAqzxRObRvHX N9nvau+2o2IYWjBeLfyGcU+tUfY4XOzFaj1RthY7XfJDe5NsXfVsD6M02qpipdayb04OFSaFSllKJ C2CLY9ahgIHBWrwcQzFIVJUTuQVSasKst73Bho6MYivV6XnsQOp6OkpESZv0vvzHJTlZrTYZOSSTM z4bW+vJ4dHkNCgrTJ1YA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1dFG-0007KK-ME; Mon, 09 Oct 2017 18:57:42 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1dFD-0007Hv-KJ for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2017 18:57:41 +0000 Received: by mail-wm0-x242.google.com with SMTP id q124so25177241wmb.0 for ; Mon, 09 Oct 2017 11:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Ze+pF1KLVB83EKdkWA94TCZaxGEimChht+/JhXDpWBI=; b=GB7RodoordreQa1rgVtkXbbv5qUx+Qf1Jo5+8q6L7XPlbW+fP9rgEmKDeJjF83xs9V o/5VQ++kJipWfLNdzp5A0nZBahCfu5UHa+EIj72U9AmiLknFa4+ie/odFw5dvrOFBQa0 RJLi1WHzlVuztPCGLd+XpLyRoFUrmL9Wl5OBDtqFwkQUAgG8naqv3V3OAtOsphO8VuRO kBKh3fpqPkryDMBomXOuzEn2j2AGxjDmYMNiTTqfXvNQKjZdNL8Y40+o3fO6zrdK4PnT D4XtRXX3tX8XIM8X8+4NmVT26j64G2AU3Bh6HxeyY2nutph+23zRAimjDJsU1Lgj+Ejs 440Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Ze+pF1KLVB83EKdkWA94TCZaxGEimChht+/JhXDpWBI=; b=LfpTQ+P2aQb2vQiPDW9XTiNTt7/TjBmnJczhLSdsHPvBqCAZ7OCQ1ij0KfspeaoRGM QFDx5onAzRUBaLbyuQjGOks5lL+3glOJfaLe6KMeJU0Uw0n1XiGYl8whZyHLRE7NysIc 9a/zTO3IvRJArHoR+vi349YyDxXjdWchkHgn3IiycwzX+ovcCKZnxQRGpf/QsM/ajdMh /30+nTSORvHpWIutmP6wA8M/72lK+ZCOWBUlUjHs/KHAsdtQ5shmM2RtIcYjSODnJSLX Iqz8ioduwRnooQXboo+BPo5jXL7ugrfaCAQAndQTpipQaT/Ocm3wL7E8PmOHeKrnk2GS zalw== X-Gm-Message-State: AMCzsaXuLF1re56UFQ0Leow93WZMggKi34Tp6MRdCYirw+uxeOkTsFW2 UFQkJWz5qUmhTSuhnWOfn+yc5Q== X-Google-Smtp-Source: AOwi7QDiqslJTwGqEP1XlYqirWwpVMoEXbRCKC96eAK88ynpnBYXzXaSAtqDVHyqs+xWPdXF2TqHeA== X-Received: by 10.28.71.194 with SMTP id m63mr8674750wmi.48.1507575437261; Mon, 09 Oct 2017 11:57:17 -0700 (PDT) Received: from ?IPv6:2003:ea:8bcb:c500:5da5:fcf2:90ed:66ad? (p200300EA8BCBC5005DA5FCF290ED66AD.dip0.t-ipconnect.de. [2003:ea:8bcb:c500:5da5:fcf2:90ed:66ad]) by smtp.googlemail.com with ESMTPSA id j4sm4476316wrg.11.2017.10.09.11.57.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 11:57:16 -0700 (PDT) Subject: [PATCH 2/3] firmware: arm_scpi: remove struct sensor_capabilities From: Heiner Kallweit To: Sudeep Holla References: <8afb173f-1480-baf8-e15b-5c01ed033671@gmail.com> Message-ID: Date: Mon, 9 Oct 2017 20:52:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <8afb173f-1480-baf8-e15b-5c01ed033671@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171009_115739_868277_3323DC18 X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP One more single-element struct was left, remove it. Signed-off-by: Heiner Kallweit --- drivers/firmware/arm_scpi.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c index dfb373c8..579941d5 100644 --- a/drivers/firmware/arm_scpi.c +++ b/drivers/firmware/arm_scpi.c @@ -331,10 +331,6 @@ struct dvfs_set { u8 index; } __packed; -struct sensor_capabilities { - __le16 sensors; -} __packed; - struct _scpi_sensor_info { __le16 sensor_id; u8 class; @@ -738,13 +734,13 @@ static int scpi_dvfs_add_opps_to_device(struct device *dev) static int scpi_sensor_get_capability(u16 *sensors) { - struct sensor_capabilities cap_buf; + __le16 cap; int ret; - ret = scpi_send_message(CMD_SENSOR_CAPABILITIES, NULL, 0, &cap_buf, - sizeof(cap_buf)); + ret = scpi_send_message(CMD_SENSOR_CAPABILITIES, NULL, 0, &cap, + sizeof(cap)); if (!ret) - *sensors = le16_to_cpu(cap_buf.sensors); + *sensors = le16_to_cpu(cap); return ret; }