Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2046807rwd; Fri, 9 Jun 2023 06:04:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6n/dX7MB0oZ/TAf5IuPTO5mDOkfvWESpazcW22yKV5jV+eFkxFSn9TiBk4b98NL6M+ncMT X-Received: by 2002:a05:6a00:124f:b0:65d:d5cd:6f17 with SMTP id u15-20020a056a00124f00b0065dd5cd6f17mr1105585pfi.24.1686315898733; Fri, 09 Jun 2023 06:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686315898; cv=none; d=google.com; s=arc-20160816; b=aFZIgVtJ8EHWvjoTKzrWoqpLwPdl1sFh/a75aRprApkOLYKqwMFHlzz3d9N+BkhgpD o4vkcT9lV0bJeMXfhqtoZ3QxgmWF4/oJXry+p+tsnjcLndDiNorjnVTCHUhAMj2pCmDc Uifu3IrfwTNjbrkfYbWSwj8BSsO2qfyp68cIiPGjnhYpBhoPnckeIK1RvYpbwEW1l5D1 03tRbS6C3nz6spMud6aie9iOlvA2XboJdy5GYWYkvUt7D/U9SuzTqU5R5xfZ4e1VYiEp upl14pVHclbHMbvZ79kteS4mqMdn7rje13FeLgzHc4x8fuQJ1DZGHP4o3Osn5VW5HJQu uOmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HGZuJbgC740YLODlkWmjW5DXUdE1JToY+I5MmfvcPe8=; b=cTbDNxXXlYAQOwkuTlWU9vqAK5H3SnwEPhwAnzJQoFeeHezwcnJxey6zevfJAuwIzC DuBKAAq4uWFJ1KCkexoBYR4KKm1hqACRjPLA9ftlk2ZfoSMptPgDAXM3V+9YJjv02Vq7 kfkf2O5+rhYqOmqx12tzyJZyFUWYPRxKT4Av/MEQ853UG2zbesaGn+qOgclZkfvsnrFg x8JCc71KBdn4YUNGQAS91jO2p31+d42ZX/ydLlACq/fEJ3zIN3yYOiLIOhOwKr3OITiv R+S2V2aiy+8yrqMFOYOeO29DY6rqqHh0g3nwuJPl6ix0LsXHVXR26dChFamo3sMgd31o WS0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mvNcCHBW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a633c06000000b005303c1de315si2540189pga.853.2023.06.09.06.04.43; Fri, 09 Jun 2023 06:04:58 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mvNcCHBW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241255AbjFIMvh (ORCPT + 99 others); Fri, 9 Jun 2023 08:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240955AbjFIMvE (ORCPT ); Fri, 9 Jun 2023 08:51:04 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D77210A; Fri, 9 Jun 2023 05:51:03 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-ba841216e92so1748215276.1; Fri, 09 Jun 2023 05:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686315063; x=1688907063; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HGZuJbgC740YLODlkWmjW5DXUdE1JToY+I5MmfvcPe8=; b=mvNcCHBWzHzNrO5q//rYg4MIP+yevdSZDgHg069w9JYhCxodazO3P0y1RhJZcahL3r XRBlpalsVTX7DHdxNerlk7owLreS7cT55RUWTlFS2K9zWzz/nP2nGlqr5As0fjqzDmZt 6fRFUj9vNnn4g/kCU5Oy2zaQ7uIbM2QyNevd+slCegXUirOZcn2sH6hYb9mgrKOA3l1P a8L416qBpaJcP858J3isZqocEckWOeMw+0Vj8VjH6ZQadugzAaalzSY9axGPO3jEOVw7 pHdmJeroiqyI2qf63yxYzuFQ71pRKUmaCfvXo9zxCA+i/FORWSD3rR7hHOOFoVZ7+NaQ Qq5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686315063; x=1688907063; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HGZuJbgC740YLODlkWmjW5DXUdE1JToY+I5MmfvcPe8=; b=l3R1FvtJc6aBUB2GnOEs2/wnyaKuUsJlRCNT7UXiM/11COVq3SPPU+lCIFNngmV2/v Wmu7604j4VPhbl3MRRdeAP6fngkyUFS08NeaCCsrDbFO+wJbVSFJ7cTtB1W0RBbnQzb2 nHvyWkzAEFfPL73NJaq2SgbKos4eb5kEq51IWh4/M51GUJobEgx+bUEQ15gTBh+6V3Pb FzCu8Pc8F+VMKuVuTEKezpOIFSSK9egDLcuIAEyTq1daRv49ums7LLhuiBbnYnD8+eP7 0ehZ1qJpRbyAxCi4ykI02hjM+zE6tKIb4Ki1sGpfc6PLYWYkSFoonoHAXvO48WWOapj9 7oow== X-Gm-Message-State: AC+VfDyJwmpUVcQTgiIQNeHjoVWyA31JwXEg2Hc7uXL7BvlP5Bv2Xvpx ftt1UafTOK2HcBshhHWipN7oghxPOiExzxWVf4c= X-Received: by 2002:a81:a009:0:b0:56a:3b3e:bcc with SMTP id x9-20020a81a009000000b0056a3b3e0bccmr1023511ywg.17.1686315062773; Fri, 09 Jun 2023 05:51:02 -0700 (PDT) MIME-Version: 1.0 References: <20230527012206.133464-1-samsagax@gmail.com> <8ae3e2ad-27ff-4339-88d4-504c2f59e501@roeck-us.net> <820cef00-4768-46ae-c5a5-ea7c0dff71c5@roeck-us.net> <94f78001-13df-8c39-4771-7842dc94195e@roeck-us.net> In-Reply-To: <94f78001-13df-8c39-4771-7842dc94195e@roeck-us.net> From: Joaquin Aramendia Date: Fri, 9 Jun 2023 09:50:51 -0300 Message-ID: Subject: Re: [PATCH] hwmon: (oxp-sensors) Add tt_toggle attribute on supported boards To: Guenter Roeck Cc: derekjohn.clark@gmail.com, jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 > Why don't you just attach the attribute to the platform device as I > had suggested earlier ? You mean I should do something like this in probe(): static int oxp_platform_probe(struct platform_device *pdev) { ... switch (board) { case aok_zoe_a1: case oxp_mini_amd_a07: case oxp_mini_amd_pro: pdev->dev.groups =3D oxp_ec_groups; } hwdev =3D devm_hwmon_device_register_with_info(dev, "oxpec", NULL, &oxp_ec_chip_info, NULL); ... } Would that work? Or even be correct? --=20 Joaqu=C3=ADn I. Aramend=C3=ADa