From patchwork Tue Dec 5 22:17:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10093893 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 5033B6056E for ; Tue, 5 Dec 2017 22:19:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42801289BC for ; Tue, 5 Dec 2017 22:19:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3754329582; Tue, 5 Dec 2017 22:19:40 +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 B74EA289BC for ; Tue, 5 Dec 2017 22:19:39 +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:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7t6nq5O7HTmJkMOspIJwcj2fxepBsWMaI8PI5toWghE=; b=KX5UbAi/3R28YH Q8QcV71vJaWzu/14KBwQ675PbYYCislKFzIE/RoDV+HJgmByD8HlLLOmSs03fQydF0Oy4fSoFaVkn /9oiEIEpekJfmfLKZ52ftoMPJT+ZFgM9AlAd6aX05xvqB44gRcDwNQhS9NP9IQjfitrnXP6CZZCFB F3qGH4lV+eFiyjQrt/bYPrPWqv7lR2Dh2KE5uLBSxG73qj6ULVGKC35FecKeCB99H+yeB7Rirh2Ko kaW5Yi0yHZg5xiRmi/VY1KJO4OtPxk6rh6wnL9N2hdwLtc62G5Umxdbkqx57xAh6XHE8wVXpnnPzx BqRTIJ0Oy7jJ8zisgpgg==; 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 1eMLYw-0000HA-H6; Tue, 05 Dec 2017 22:19:38 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMLXL-0006zs-RG; Tue, 05 Dec 2017 22:18:06 +0000 Received: by mail-wr0-x242.google.com with SMTP id v22so1929068wrb.0; Tue, 05 Dec 2017 14:17:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=l99hUewNJIP3bJxsj0nPISvEqcDX8JlZ4nTiItUdVts=; b=lLMq0P0L9H0Qg4amo+kal1keImsROF74r2S2Fi0zVKLk860VIsAQTDs1dzPA+FOMMy Vu/ImALKjoh/tXyd9cOcgLsX+yG/l5OJfdYseU5+5TtjB8tcDay8H77aRwE29jhmQUTG 2lWxcrxDyVcoCv6FhqHyzoblN44PjtUPKgc0rcC72Ga1tbB6c8JKRabyvijfE/0ir+PN qp4HIXrgrQeA/MZpAHYekC6EJUjWu7CYIY684B7LuuYJ1lI0hL9ay7sGW9QVzaXouCEK G9LAtmLa+r2geAlw1C3+6I8/YjXbxkvDsQ/KCYsMkFQech53U9on7dWz0VlSrYGNcU+a RBpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=l99hUewNJIP3bJxsj0nPISvEqcDX8JlZ4nTiItUdVts=; b=FmmPlErICoWliC/Gl3htginkIXGgtxL7OmFaMzIdPm6+T+p7kF3AkL8hz5amqN7kkb ycUQn3B8Y+S8zMWy+VhbRTQcBl+kq8ZkWTkJqEgSX6fk/9946BQHV6IxbCc4CjK7RbIa jOxeNti/oJJq1CWvU2Ezl/o1VzOzg1nf83coQqpBfjrnnHa1dfpsly9hxXR+bOxuImeA P4P0jlG3vszKUtVfo4FW5q7dlVB3nufz5RWMO8uchVG3GUHPxD5UUqEgmcLYASd19TyA rnD7kBny9VemrhCcy382IBgFDHxEpBGU9qV3/6/NeOxYZV0Xwfmy2kaeRuzHKLkBB4/3 WQFA== X-Gm-Message-State: AJaThX7MPgN3az9dq20yDmYbfeWOcegyCr+TzhvcQD1HTQEE4IaoZjNx eOGaiTUXwx8jpzSkG/wem0Q= X-Google-Smtp-Source: AGs4zMYF+OUOFG9zmo6izb29OxiUNcjLUU7W6hw83/fEHf844pq0Nh5CKNlUSkNjDBj6ss/nGCJ4dg== X-Received: by 10.223.153.20 with SMTP id x20mr16010879wrb.219.1512512258659; Tue, 05 Dec 2017 14:17:38 -0800 (PST) Received: from ?IPv6:2003:ea:8bc0:e400:b595:9d9d:56de:88e3? (p200300EA8BC0E400B5959D9D56DE88E3.dip0.t-ipconnect.de. [2003:ea:8bc0:e400:b595:9d9d:56de:88e3]) by smtp.googlemail.com with ESMTPSA id d9sm1170210wrf.45.2017.12.05.14.17.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2017 14:17:38 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 10/12] firmware: arm_scpi: remove struct sensor_capabilities To: Sudeep Holla References: <99220c79-8b35-2978-11d1-6d101ccb6772@gmail.com> Message-ID: <15722eb4-836c-eb30-fdff-8389ff8e6703@gmail.com> Date: Tue, 5 Dec 2017 23:17:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <99220c79-8b35-2978-11d1-6d101ccb6772@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171205_141801_110399_0FC05F25 X-CRM114-Status: UNSURE ( 8.90 ) X-CRM114-Notice: Please train this message. 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: "open list:ARM/Amlogic Meson..." , "linux-arm-kernel@lists.infradead.org" , Kevin Hilman 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 b653ada4..5695b1f4 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; @@ -730,13 +726,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; }