Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2041176rdb; Tue, 5 Sep 2023 12:27:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IED8omPzb/1Ffo67du1u1CHUYHUfa2uNf5kUGjB4pWbIWFUjVR/H5wfGQn8gbcB500FSVwZ X-Received: by 2002:a05:6a20:939c:b0:153:5832:b206 with SMTP id x28-20020a056a20939c00b001535832b206mr54860pzh.47.1693942033653; Tue, 05 Sep 2023 12:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693942033; cv=none; d=google.com; s=arc-20160816; b=hkYCO8Vnu2IqqcZnDhlmyxtFz23ZqqVAXLDxxXtx9i12HoazsVbkErzlNMKfkv2+v0 c0tSQJ9mzw40eS2avnsjPQx76qrhWudDsQVk3qp2ST9C5GZIxuopaK5+wC7J4GozB1+M Obsc0hvNDxCD2tp6+0EE8N4Njs8pHnY6nqdQpBJovA0Dz1vdgDKktuFs1ls6FjAagdZ3 kMAyBTVae8qAUulqUSWAqWzipgNJhDV4hqlmWP5mJ/DWWCU+RDd5IWJpr5P+Jk/2/2SA eZEouluc8/qOtIYn44PYWWBCnmqDVSUQ7XF2G0iWpz1B/vjfYozuCdKHL/K3pmn1OLnP kCgQ== 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=BphPWd+IuZZu0UkvgHHYWFnevhaPbexbSFKQsJZvFd0=; fh=ukQARwVvJjh7bTXUHlyCfCHbpOBV27EbjzuEoOlsw1k=; b=nugJEy8KOv7v3vExO9kQeQWUX4pc7u8foZAKkza0gugdKII3lf2sfacjAVdbJzwPtb VDKf8n2VrKwHd/R37BH0VBtlXYvks9G26rG58oWN+Wi46x/7Ax4ic6s34B7DxGxRrySl ookG7Pfv4pcBX7kVXr/wF0/woUBRkM4zTDcvSpfkLVoJOtcYja2ByKRogO5Jrt69t+e1 2rE1Dq/ch1cHL3532WzyXwlXrYmYADv0E0qKMFZKWVZzK0CRUyLGKWR6xcez3hKw/eUk gUghIpmdOdrBzJ7f8IPZp4xQwxjDT5iOkikA5bN+MesUEE+L3Ahe9LKpvT1SV12nJHU3 DGzw== 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 x27-20020a63b21b000000b00563fac86c55si9870421pge.134.2023.09.05.12.26.57; Tue, 05 Sep 2023 12:27:13 -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 S234487AbjIES4p (ORCPT + 99 others); Tue, 5 Sep 2023 14:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230112AbjIES4l (ORCPT ); Tue, 5 Sep 2023 14:56:41 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E48441BB; Tue, 5 Sep 2023 11:56:10 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,229,1688396400"; d="scan'208";a="175109479" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 06 Sep 2023 03:42:57 +0900 Received: from localhost.localdomain (unknown [10.226.92.194]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id D7C57400A65B; Wed, 6 Sep 2023 03:42:54 +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 v4 0/2] Enhancements for tmp51x driver Date: Tue, 5 Sep 2023 19:42:50 +0100 Message-Id: <20230905184252.222742-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, RCVD_IN_DNSWL_BLOCKED,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. 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 | 54 +++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 29 deletions(-) -- 2.25.1