From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46B93C433DB for ; Wed, 27 Jan 2021 18:45:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 18C9560187 for ; Wed, 27 Jan 2021 18:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344059AbhA0Spf (ORCPT ); Wed, 27 Jan 2021 13:45:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344017AbhA0SpK (ORCPT ); Wed, 27 Jan 2021 13:45:10 -0500 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18EDC06174A; Wed, 27 Jan 2021 10:44:19 -0800 (PST) Received: from [192.168.1.101] (abaf219.neoplus.adsl.tpnet.pl [83.6.169.219]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 33EB53F0A3; Wed, 27 Jan 2021 19:44:17 +0100 (CET) Subject: Re: [PATCH] thermal: qcom: tsens-v0_1: Add support for MDM9607 To: Bjorn Andersson Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Amit Kucheria , Andy Gross , Zhang Rui , Daniel Lezcano , Rob Herring , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210127181400.44642-1-konrad.dybcio@somainline.org> From: Konrad Dybcio Message-ID: Date: Wed, 27 Jan 2021 19:44:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Afaict, there's no need to initialize base0 and base1, they are both > assigned to before used. > > Also, they are temporary variables within each case (even with the > fallthrough), so you should only need a single "base". > Right. Fixed, will send in a v3 (I sent a v2 shortly after this one because I misplaced the #defines). > How about: > > mode = field_get(MDM9607_CAL_SEL_MASK, qfprom_cdata[2]); > > and same below. > > (I see that this would break the style of the file, perhaps we can clean > that up?) > I'd rather not change that to keep it comparable to the downstream driver, should anything ever break and need investigation.. > qfprom_csel seems unused and uninitialized. Fixed as well. Konrad