From patchwork Mon Jan 18 15:22:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 365552 Delivered-To: patch@linaro.org Received: by 2002:a17:906:fb05:0:0:0:0 with SMTP id lz5csp44727ejb; Mon, 18 Jan 2021 07:25:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtwFGibCw1zllpm73k940nStpVH3+k71glbR8eizzYfMUrHHpV+AWCUwuAqLTu1IvileFy X-Received: by 2002:a17:906:369a:: with SMTP id a26mr155501ejc.276.1610983510960; Mon, 18 Jan 2021 07:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610983510; cv=none; d=google.com; s=arc-20160816; b=opObayHDvrRnUY1u7yMabyQGJlyfb6QmX0ceYWdPwHbxUeOhz5eSJzLeCQ7eBPzQz3 IZ4lqVg8Xoh6Rfa+0WgaiqdgArmlRV/iSinSvLwfVjgQ0olMA+AByHablYdLnqQLL7mr /dtEp9U537hqWINj8Hx9STRaKGElIW6TpN3Ah6lmfY4NukiS0x4WXjugHa8ef1lM5L6b S/N73AksO5IXhA7nkOrl9iqAUUQ/vxyUg3QiWcVKQWpYsZyNj5E6mxucq1GalwLXXgAT vGYiXcYk16kQYV9/HmWBWTLYhWAQQKzD3h+z1MLfOVgU/5b2roEsAHRvGgFfWjjsV9AJ KEJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UDbFBKM+NToZkfKZaMXOQfZrWXoa1JGZS1Y+JAg8jIs=; b=h2AxZno72+t2LXYPYXIHXD6BtQGVSMCaaqFC/9n2bFGjM+TvhPeH02mbx86k2L8FSg MRZvup236erbWj3vdb/kgoREdGvD1iKtbJB6wvRV/ssujuH80+WEQLP2sFbwd2lJNV4U S0jGJPHTHIQ04fIKg9pTzRVJZByWWNPjMrz9jke45lRbM+nfSR2n8rj0GwfAfmg78KwI v5tq4m1xcQo8wKywaW2RDkvG0lMFv/hJNkxqNzRW6Eec6kMb2BgkiqBnso66vPOV6Q0v i8uOdp67tlh+p4Ao2VGeR8TV9ah1ZtB3kz+Dr0q2wrCOlDQ0scLtuWrn1GB1Sgz6nUyg O/Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qkbl34Iq; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si8394427edo.465.2021.01.18.07.25.10; Mon, 18 Jan 2021 07:25:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qkbl34Iq; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393406AbhARPYE (ORCPT + 15 others); Mon, 18 Jan 2021 10:24:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393380AbhARPXT (ORCPT ); Mon, 18 Jan 2021 10:23:19 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42C7DC061573 for ; Mon, 18 Jan 2021 07:22:39 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id v67so24619391lfa.0 for ; Mon, 18 Jan 2021 07:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UDbFBKM+NToZkfKZaMXOQfZrWXoa1JGZS1Y+JAg8jIs=; b=qkbl34IqTAeq41jPqeJFN4AXm2OXs6lGFEc2NKYkLVuRvIgHPAo8E0f53CdFowRkZ/ WkfZrRxtt/B8+Q6nIsHfzhAuWG4ed78Yt7D5O/CH5Oh832WJQMtv2ICJsjPg7xpmFcoc 6rNLO71N+E7+pM/IEZ5om9Rs87HIWc4SPcjLb96bNvz/DPklAlE3UN/y/thC/yWQXMXr 3qcGNbVF1OY5TPxhDuKDLF1PgybWzAuLiHP/h1HpgzDf7JEgKft4vZSxpNF5nWXOrrEY StOKhG5oQGYxfdeo2OpZwaxz2WzEsvLS+kqIDYeWfViK+w5tzknpd8PhW86xmnZmSSG0 l2Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UDbFBKM+NToZkfKZaMXOQfZrWXoa1JGZS1Y+JAg8jIs=; b=kML8nz0lczAGM5725av05pGLRJyU24eP93YvSYU3gVdkswmFkr3UvF/2JGIrEsllWw a+kYC9jnOKek8wXjv4rlhEbiaEtZaJkFrv0pzfilsrO4gbMB6nvPpvZDkv1W2Auzm9qv uhU9Z869m24L14NiTd5MozLefQmePEkekZDfyJ9fNXIAk/w4WX0kz8h8PXvv1BOrDUVf FL846/zDPyHomPurnsBfCwBPoclPscKoUIbLoSCLzJa8blvr6Tgf1OilCZ2w5pTJsOXt 9QTDOWmA24XAZrS5umQnLg1xG6dJTHruGImICv+i/ZWLAHI3T0je7RpWT+63W2Z+9Sx8 cIHQ== X-Gm-Message-State: AOAM532YcdeAKYogy/NdwX5kv3eU47+EXWiN0uPPgPVcaAqolYT/WW45 4Vu7Y7cSxo4R+r7XDnbj0VBRxlrfTebgeQsA X-Received: by 2002:ac2:5d43:: with SMTP id w3mr11958863lfd.49.1610983357843; Mon, 18 Jan 2021 07:22:37 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.4]) by smtp.gmail.com with ESMTPSA id b15sm1541400lfj.306.2021.01.18.07.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 07:22:37 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org Subject: [PATCH] soc: qcom: socinfo: fix two sparse warnings Date: Mon, 18 Jan 2021 18:22:36 +0300 Message-Id: <20210118152236.514776-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Remove extra le32_to_cpu() conversion, data is already converted from le32 to cpu endianness. This fixes two following warnings: drivers/soc/qcom/socinfo.c:322:36: sparse: sparse: cast to restricted __le32 drivers/soc/qcom/socinfo.c:323:36: sparse: sparse: cast to restricted __le32 Signed-off-by: Dmitry Baryshkov Fixes: 734c78e7febf ("soc: qcom: socinfo: add info from PMIC models array") --- drivers/soc/qcom/socinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index a985ed064669..bfb68dc370b5 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -334,8 +334,8 @@ static int qcom_show_pmic_model_array(struct seq_file *seq, void *p) if (model <= ARRAY_SIZE(pmic_models) && pmic_models[model]) seq_printf(seq, "%s %u.%u\n", pmic_models[model], - SOCINFO_MAJOR(le32_to_cpu(die_rev)), - SOCINFO_MINOR(le32_to_cpu(die_rev))); + SOCINFO_MAJOR(die_rev), + SOCINFO_MINOR(die_rev)); else seq_printf(seq, "unknown (%d)\n", model); }