Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1869809lqm; Fri, 3 May 2024 08:43:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIIwTLTPAyBhlUUREJsjGvMzlwO7fDdIlJW/MFE5szDbAlgNJwsJuDDQa+AJ90P8i9KZ8joA8XrJrLhdY6AtssrgQ5PQtNATMq0Bvv5w== X-Google-Smtp-Source: AGHT+IHfpAh546+Qit8X2Xg8i28B9mqNj7J/T6E07PLZRDmxhmEOq4om9FaE4rFfMI8qi7CdDaZi X-Received: by 2002:ac2:47e4:0:b0:51e:fa9d:a532 with SMTP id b4-20020ac247e4000000b0051efa9da532mr2023193lfp.37.1714751037736; Fri, 03 May 2024 08:43:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714751037; cv=pass; d=google.com; s=arc-20160816; b=vWkvetxpgAsENZpvY93NfoDHGI92d9wMd22rAk2xPM7HKZQFTh8TE+Fh4Z+oA0nVpD AQwa+8cTKWt/4Lbf8/RSpFRtYm43C+37cKuDX/6Mf0UyQA8PnfrUjqaJR8N136StCoXb sOV6SiTvJLtQDZg79nJV3IiM7jTHhZUfvtO2JTgFGWvSj4xR4/sUNvVOgLQd3wIGYQLb AO5apg6o1gZvwXgUOO0rpo7yqFXOX3WXz9kjBmWdUJ3Adi1vfrLTD+vbcoGG6UCq0JtB KRIuwQHAgEvj9TyP0h1fUZ62T7AgcQDeZhTGjSLms0R+SqQp7Fw35J+XYECGNkrLbFOf Oopw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:sender:dkim-signature; bh=rmci5WxWXCx38itxGY4xcvtGsBsErI1KmcKxvvSN1a8=; fh=YIUdX5vieO7T/6oWYWsTeHhMsDrXj3vkjcZMtMgF3t8=; b=nVF+cGdI8S+nSM/mBTc6/LbSkEnxeAs/6ZbzqKHm4zvrLbumIyKAd58SbvJ0iXzPbz 9O4bMXybHmp4QJ50LzXRt9aeszjyxiqJ1mbsteC71vYcCUhLyqZ4T0ed8fTF0+U8XTuP hNlGKWaCbimyPtg7K9d1EjCUH5zjs1RK3ac38cI/D9dXeH3eAHxAmOXISGoFhLMzcv6L 8A+M8gd69LMdQ+pF13Xc8rz/OW+HFBA6nLnjCfjrvTZqXiwCW0EO17epeZhoVtOz5U/p zEMC8rqgh4xOkUxlTU+nltSpSbUZDGppPp/kWRewsyfKrhVN8sQ1XgzsxPmRwkaXa7u/ oqMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jdzw3IAA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-167846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167846-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j5-20020aa7c345000000b005727ddea5f6si295020edr.288.2024.05.03.08.43.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 08:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jdzw3IAA; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-167846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167846-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 74BE91F233A4 for ; Fri, 3 May 2024 15:43:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91296155342; Fri, 3 May 2024 15:43:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jdzw3IAA" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F78E1509A4; Fri, 3 May 2024 15:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714751010; cv=none; b=BoJnWX9EE5/m0K8EUYTYZXopNNSuYdysJp1oeLL+IIztLvo5Qhuf940pM8UszfhCAAzD+zBzUIfAJU8Vts1W7pZbl5ZgDil02NgCkKkF/x1MtEVDrMA0jYluq2OYbKGSiCXVxI5B33bBqv75Vrn9YjMqPtOjnI6wyg0dnDnXl9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714751010; c=relaxed/simple; bh=liLAgj4dAWwVyJDbmVLEwRFJZEj2sBbyqcKE/mUzxig=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=nz6NiTU+lf6QHg54orLQGmn4ZIu8mPofKoUY73W2Bt8Wm7P2Ey7DIONl/NV+O39ootjxO6UOm74FHAwqnmUWTnj3Q+WRmuJBr+xgZCqMcAVA8zdX/wiHaPZDbmX9RdlG6+R6oTmNuWR8XP5vPDSSRTUwupcJl73ViG+a4wtBVDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Jdzw3IAA; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6f28bb6d747so7802232b3a.3; Fri, 03 May 2024 08:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714751008; x=1715355808; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=rmci5WxWXCx38itxGY4xcvtGsBsErI1KmcKxvvSN1a8=; b=Jdzw3IAAGY2gmY1zi+GlGRMMAImY0VafqJA4JkGJEEMM/1Cs7V93XwMCmh6uJ1dk6K xfhsZ54c3r5yLGLTnxfcjlpwithAmtJ/yWyj2ksefJ8wuEGJEDO723jUpNsqqwAj3NsT 7pWaC9ni5wAsa+hlOYTdFzxuBPcxKi69LF9wiFV/vUpKTSbzv4/2KImULFeWr2q8qTaV er3cP6OB32Q/Pz6Sqs00dxcsPej0E60dZ6U1znFMYgo5wmWJXEUi1ypVTygdLb5yyaI5 E1gWDObYKjnrOT/Q0FX82husrOaIdiyhZG8RVo3A/giifx+Bb/maUSYiQB09iiQJu01K Tafw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714751008; x=1715355808; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rmci5WxWXCx38itxGY4xcvtGsBsErI1KmcKxvvSN1a8=; b=jUGqdR89/9cxKqZqIR9VSbWfQYkoYR8PwgtrxUQe6/jP0ioFUJnRyiK8a8jSsqyNw2 g+KWDkKo51PGgEoR3seb9lJU+F3NiWxyZjUsTBFWeXxccUK0o6EGH5wcExlpWVTf2/6l 7KuhOz3UG+QXvJiwAW+2hmRKePnIYe1z8Hx+00ViKd2CHJjjq0gwhe3wi2pBQ06xWJw2 tyzRYYUFc7Bz9faPcCICeFK4PC0Q2KkcSnUH8/v8F0xBhjoMhLRYL6i/9JzeqRs2ig3x /6U1U7EqsGxl/QT1COVolJ6sEWPGIXSMtIZW3RpZaCTF8IZW/HVm890OS5cZqeppfzK7 DC1A== X-Gm-Message-State: AOJu0YxAOchxjBv6bia9vlhIlpvF9aPXq4azy7IXyx1mbGL7DLVKZgt4 /aYkAYB4Csf31I0k/s9W3R5E12F5sq5SkrpcEi8aL0FT4GfCsyoQmQ26Iw== X-Received: by 2002:a05:6a20:5530:b0:1a9:97d2:8082 with SMTP id ko48-20020a056a20553000b001a997d28082mr2872100pzb.9.1714751008170; Fri, 03 May 2024 08:43:28 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id j10-20020aa7800a000000b006f447e2745asm1991335pfi.95.2024.05.03.08.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 08:43:27 -0700 (PDT) Sender: Guenter Roeck From: Guenter Roeck To: linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 0/3] hwmon: (emc1403) Various improvements Date: Fri, 3 May 2024 08:43:21 -0700 Message-Id: <20240503154324.517246-1-linux@roeck-us.net> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The first patch of the series converts the driver to register with the hwmon subsystem using devm_hwmon_device_register_with_info() instead of devm_hwmon_device_register_with_groups(). The second patch adds support for 11-bit sensor and limit register accuracy. The third patch adds support for update_interval attribute. The changes were module tested with the script at https://github.com/groeck/module-tests/blob/master/scripts/emc1403.sh v2: Reworked first patch of the series to prepare for subsequent patches. Added patch 2 and 3. ---------------------------------------------------------------- Guenter Roeck (3): hwmon: (emc1403) Convert to with_info API hwmon: (emc1403) Support 11 bit accuracy hwmon: (emc1403) Add support for conversion interval configuration drivers/hwmon/emc1403.c | 749 +++++++++++++++++++++++++++++------------------- 1 file changed, 453 insertions(+), 296 deletions(-)