From patchwork Fri Jun 16 16:00:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JuenKit Yip X-Patchwork-Id: 13282928 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2951CEB64D7 for ; Fri, 16 Jun 2023 16:02:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230368AbjFPQCK (ORCPT ); Fri, 16 Jun 2023 12:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345781AbjFPQB4 (ORCPT ); Fri, 16 Jun 2023 12:01:56 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn2035.outbound.protection.outlook.com [40.92.91.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1027E35A6; Fri, 16 Jun 2023 09:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KOpZAPShBW3w5SckE2p9wLlA3a+hpnc4/aHV3wPjnQxQXTiG0Wp4vygjOIZq12LehyRKbcp7X/dOJzlNzIx3LNIYw6hVPgSQ8RdhzI8t5DYj9WrFxnhTOg1JKnfAwmICv8sxoORSc1OwVhpJ5ieyXKZe3hKQEMzHrvnB2brAZJk27Jnjy0nuugwnu1NyCceNe0PjLIFtdff8j/pGPoabhprXRY5AMgRyanURGSkRjNyA5lNkUcQmK7JkYNr/6uTObMOZ3oTmMMaF0Y2O0hIUUOPvGvSGdA+0Bi4mrgv1KqqCcg305LfPU4qlcG6Plq/fWiI4sjRF6CcdPcmTAvFJxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vZSjapdVjZVj0bWCTKjxCgRkFqSFvPX9XHSxOUu5Awk=; b=W9lU2scaT2pALF8LPw2fLoIu45/ZgzssaAUudnRSn4Wfcjv9eKWvKLbk3j5+XCu8NNftpdSGNs0UavGqkay/K3Go9sXWNowv1rSQIfrl6AsZ353LAMUqyEDlC0crA4u8KLbII0kVLZuPI2A3g4RsZZvZoFCYFi9K2f3ryZMfXKwrMRebflI7ut969o7chTUa+fbV4rR4SKUtQhdKADg7IJqNGBTLS6+sN/AV6LalfSJ1h8Bj7ma20BtDB66Jt4eMeWONGyGFZwwzQ/LgYCrEpWN4X9dBMhxYMMosR7ic1sZAzVwzxUEmcVlI/ZlB3oIUSRBaf4uMJnZtCQRfRT5Jlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vZSjapdVjZVj0bWCTKjxCgRkFqSFvPX9XHSxOUu5Awk=; b=YamZZQZR4IMZWAu9gtp/xfjwwhD8C+10fqCinuQW8LzXG5TFEIhqgNX9D5Y6dMYAFzlGr4rQvMM+wYa0F2Em0QCtdpGIlpzEGrX2UDqbx6S+vmnUNEzbv3i2TN97VnHeOPyXdOE8G1on7pcWJBxKA7Nb31XiXGHc12bs04XO8myBBsd9OS8f0jJ8MQNSsob4mEykXxVJhAGJLcC4cz7k2upJO0AZWrDl58xYkyS53vPkReiwa085ojzRitHdhevvSQJ2IG5mXAg1KFRlrA4mfwGhzO0YyEPESzJ6Ghy3VmI3CnNlAaZ2UbXoV8qvV2+cE07SbZDGW0jF7HTPZwzsNA== Received: from DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:383::21) by AS1PR10MB7959.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:471::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.29; Fri, 16 Jun 2023 16:01:17 +0000 Received: from DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM ([fe80::628a:d617:46f:2a88]) by DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM ([fe80::628a:d617:46f:2a88%7]) with mapi id 15.20.6477.037; Fri, 16 Jun 2023 16:01:17 +0000 From: JuenKit Yip To: linux@roeck-us.net, jdelvare@suse.com Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, JuenKit Yip Subject: [PATCH v2 6/6] hwmon: (sht3x) complement sysfs interface for sts3x Date: Sat, 17 Jun 2023 00:00:17 +0800 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230616160017.21228-1-JuenKit_Yip@hotmail.com> References: <20230616160017.21228-1-JuenKit_Yip@hotmail.com> X-TMN: [AT3G0djnuRdrcONJf57lmpxNJkYiKOCB] X-ClientProxiedBy: TY2PR04CA0009.apcprd04.prod.outlook.com (2603:1096:404:f6::21) To DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:383::21) X-Microsoft-Original-Message-ID: <20230616160017.21228-6-JuenKit_Yip@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB4PR10MB6261:EE_|AS1PR10MB7959:EE_ X-MS-Office365-Filtering-Correlation-Id: d20ff2f7-e032-4962-0df6-08db6e82eae8 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmrST/aUJU0/QQB6BlKfxJxwnjHkkJa2LdIc0PMZ2Gs687d1ToFcU0kKJrNBjb/s13yKQi+5kFeu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4IpTztexUjkVr2U5l+Q6Mxe3eLmtpwTKt39zR+rzEFSJq3lHTBa9TcaamrPUjF5EsIralyJ4vAAAx4m//hjshUr3KucZo2v+GZRmR+1NW29KQStT4V0Tb/lWXRYNvYpJiNh5hngViv+eZyysBSy6+bOGrJXrvLJMwlreSjqWxVxgFFGd/QNhz1605SZ4fWz/d9/QkcB8U1732/sTJlvq5ZPh3naU953zNmt+jlLwMXUbAa33JxJxMnerFjkWbwmEcZVjUo5t/0u7mcTO3peIFLtuyNAwFgfhmYziTaGD8+jwgbAg/YOPMlt5hTu8kb8ZV5+QAIFrDYIRvGVBKqipdD+u+Br/CH6GP7nrjqCq4KLTsy6CmPv2Y0OPAFWyPYaHSIHjLQt1cPJQg4gyhXylTwBp6Zxz6FOaBRkAJYZ5JLcxdERmVF0FbCpZx52Ogw+zycUbVSOwaayK+2isBpo2KReEzhZ/kPhfYhcU8ucaTTC/OKlSje7yl1PJWSKLGn1zTBB/pGJrk3xLxoKFbgao71RpHZw3zqoUSQbIvH0= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6b909.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d20ff2f7-e032-4962-0df6-08db6e82eae8 X-MS-Exchange-CrossTenant-AuthSource: DB4PR10MB6261.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2023 16:01:17.3092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR10MB7959 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Compared to sht3x, sts3x has the similiar functions and operations but it has no humidity sensor. Signed-off-by: JuenKit Yip --- drivers/hwmon/sht3x.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c index adfc11c12..ae384ced7 100644 --- a/drivers/hwmon/sht3x.c +++ b/drivers/hwmon/sht3x.c @@ -707,6 +707,14 @@ static struct attribute *sht3x_attrs[] = { static struct attribute *sts3x_attrs[] = { &sensor_dev_attr_temp1_input.dev_attr.attr, + &sensor_dev_attr_temp1_max.dev_attr.attr, + &sensor_dev_attr_temp1_max_hyst.dev_attr.attr, + &sensor_dev_attr_temp1_min.dev_attr.attr, + &sensor_dev_attr_temp1_min_hyst.dev_attr.attr, + &sensor_dev_attr_temp1_alarm.dev_attr.attr, + &sensor_dev_attr_heater_enable.dev_attr.attr, + &sensor_dev_attr_update_interval.dev_attr.attr, + &sensor_dev_attr_repeatability.dev_attr.attr, NULL };