Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2748436rdb; Wed, 6 Sep 2023 13:39:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfinl77RhPeTqNMTNuZ7Jpy7krhxIdh3VU2nbGGAzLlU+1/vH7qgwVarl5dk320ZFmajz8 X-Received: by 2002:a17:906:9bee:b0:9a1:f449:ebd5 with SMTP id de46-20020a1709069bee00b009a1f449ebd5mr3223829ejc.33.1694032796709; Wed, 06 Sep 2023 13:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694032796; cv=none; d=google.com; s=arc-20160816; b=HLJZjfXy7rwPluGZNQpd1J9vEysFOy8IyXwpgWi7HEKoC7AVXYfbKw+Iwhc5kHYh8w B7t2OjoOaja770IrzeAxl5uKdMGaxERJI4ZyqVCG4gRNZHTLqHkdf+P1zJxebUBMwywW NRRmAKJeHJIeM5qs7/vZQCke7vVqMmc8lYMaYbK2h8wmmy8jdPiw2jKPMDXamc60Q28k xaulck5UxRG+9S85689MhqaV5msIkBrH+ZrrZERKy7oT4nkTdCQ1G2jrpCMIG2P4jD0D 3oJpxg0DE9ozs1Nekm3D1O+WN3eXAq0rlY5P6vpoVz10x/RiJ0cZB9NBkMfnFdL6HQGg /xKg== 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; bh=MIR/8E+/fUa2jTh/vXBMwP7o5QiIbzep1fXXJxA2GU4=; fh=ukQARwVvJjh7bTXUHlyCfCHbpOBV27EbjzuEoOlsw1k=; b=nnCezQ7NNL/6mmXxgAYMMHM/HjzTliJ3dUj+BrQRZLxDwzxxEU3YWm0gr2Cs+aWGR9 7ei8HTJV3FcQuIqVjZHvzdjL63nXUj89J74pIietsmTjzx+9N7LwHJpnjhfxCcxuPFWX rpL5rfQj6fT3X1CqJnv8yITk62QPLz9W1PIjnoBMc0ooDR/0PuFQe1j4+QiHmZQb48kx ShP9qapziLyEF/dsyyPM4jS6UZ6UVaR9vkyMWiYypCzMcRCeAMJ+s/Ir9ZL95ijC5mph 489howsGk/7JjSxN6VGUgBnUKy4BYBwcQpeMwDjvcC343AJ6ZIozw5mRyUwKHONK56rH THoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id os15-20020a170906af6f00b009980c2658desi9667016ejb.76.2023.09.06.13.39.27; Wed, 06 Sep 2023 13:39:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243060AbjIFSIt (ORCPT + 99 others); Wed, 6 Sep 2023 14:08:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjIFSIs (ORCPT ); Wed, 6 Sep 2023 14:08:48 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAD8510F7; Wed, 6 Sep 2023 11:08:43 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,232,1688396400"; d="scan'208";a="178945657" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 07 Sep 2023 03:08:43 +0900 Received: from localhost.localdomain (unknown [10.226.92.21]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 9F0DB404A6D7; Thu, 7 Sep 2023 03:08:40 +0900 (JST) From: Biju Das To: Eric Tremblay , Jean Delvare , Guenter Roeck Cc: Biju Das , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Andy Shevchenko Subject: [PATCH v5 0/2] Enhancements for tmp513 driver Date: Wed, 6 Sep 2023 19:08:35 +0100 Message-Id: <20230906180837.284743-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series aims to add enhancements for tmp51x driver. * patch#1 Adds max_channels variable to struct tmp51x_data for HW differences. * Patch#2 Simplify tmp51x_read_properties() This patch series is only compile tested. v4->v5: * Updated the TMP51X_TEMP_CHANNEL_MASK macro. * Updated the indentation for TMP51X_TEMP_CONFIG_DEFAULT macro. v3->v4: * Updated commit description for patch#1 * Updated macros TMP51X_TEMP_CONFIG_DEFAULT and TMP51X_TEMP_CHANNEL_MASK. * Removed trailing comma in the terminator entry for OF table. * Added Rb tag from Geert and Andy for patch#2. v2->v3: * Dropped patch#1 and patch#2 as it is accepted * Split patch#3 into 3. * Avoided Yoda style logic in tmp51x_is_visible(). * Replaced OF/ID data from tmp51x_ids->max_channels * Updated the macro TMP51X_TEMP_CONFIG_DEFAULT by adding bit definitions for Configuration register 2. * Dropped unused macros TMP51{2,3}_TEMP_CONFIG_DEFAULT. v1->v2: * Created 2 new patches. Patch#1 for fixing channel number in tmp51x_is_visible() and patch#3 avoids using enum chip id for HW differences and improves the code by avoiding checks. Biju Das (2): hwmon: tmp513: Add max_channels variable to struct tmp51x_data hwmon: tmp513: Simplify tmp51x_read_properties() drivers/hwmon/tmp513.c | 53 +++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 29 deletions(-) -- 2.25.1