Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3165389lqo; Tue, 21 May 2024 08:35:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUS1at5aUc6QjWiFxeiePWbC6uuNQTQzRVZaFNWK6A5jjyFFQLazEKj3ccZZGHqrUUc3D74oMpXMjJhQb5NiRJ9tUdRcWs1CFWjuwm5Mg== X-Google-Smtp-Source: AGHT+IFEk+n670A9U1Pfs5Wo8RzTCSzzqzR7c7R/TUg+fD4o+ybvLHUXTiHgnu8+tu0V9i502/Oe X-Received: by 2002:a17:906:ad97:b0:a59:c833:d275 with SMTP id a640c23a62f3a-a5a2d58a4e7mr2058669766b.30.1716305744897; Tue, 21 May 2024 08:35:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716305744; cv=pass; d=google.com; s=arc-20160816; b=iHacXyuNHUQQLtbDPZ7wnslvK4kHNkMJ+l69eiTazqrylSEwRD3sE0E2q5YLiXu0Rv wSEXB6HkW9lc7M6AIBfOe3lXjR+ZSiQGAy4YbHgUTEt6mMgcj1KI6vZf14RS7IC/ooRH Lt4GOes6uaFe3dCkQTwcB9QiMr3lUdKGW5DhdBqM6vsvBxjoKcqe/CzYhnrVPM95I2jN XIrBhyktuy4+P2ZQfVyZeqD9Ge9pUpGAeidzGgRubo+qJOuD5e7Ao1YGagEKGUpvQgqF 1iXRalB+y07S7A7OpygQWGSex8AC3Sz3D6i7p6rfLOAtMTTFuOk3JW+QgstbNphsisu9 3/8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Z3RuTPxmjmQFVuJzzTgJATCtyYrNLyLjxNXWjIoUyj4=; fh=oDDqDhRa4Zt8ggDUFJm+1yuAnSkmt/xvAWf8BHh8l74=; b=wNj4VUlHUC6YeR6I/MI9xYpOPMhPA1KuQ39i/BHyLLf8I8FayzcrWZgsfumXlQNh4K K+mpNfIVjLWPZRkXcV0NFV+uu+HNc7v4/01wrF7IpdR2pyLjwNYK7sHFov2MPYtTETGo 5fQrVK11yGsRrkYbKW8eEjxNAslkJiVETm8438Hvaa6ZyXTEs5WJrIww1JHJH0Q/OQfp uvdqZF2dT4fqDMNRteglvDxhnxT8Wqr0V1eO2QBc1QbOhIs/rRCnZkYlZ71xXTaG7wPW av5wp/CP6nt+Q82SLs0LJEha+b3ueAY0nK+68fgBCaPUF2dMxOMvHf8By8isJEMsAmqQ P/hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h6CG0M1Q; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a621a08e8a6si32432866b.400.2024.05.21.08.35.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h6CG0M1Q; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185165-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185165-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 9C75C1F2308A for ; Tue, 21 May 2024 15:35:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E1D1146A8D; Tue, 21 May 2024 15:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h6CG0M1Q" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 1F4C8143890; Tue, 21 May 2024 15:34:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305701; cv=none; b=awmaQcyS1UjTfRPYjKNivYwm8f6uCE5Btb3U0tu4p3325hqSAJl4Ef5I7IC4cQmfu9dnMJKHI7C8I7rZD8yM2bM4HFPe63zUm7INikycEiM3ee7Bvnyx1kIa2M7H5EqdgWXvnPhaQrrcKxNxVhX2dOh885xP2C6VbU6CG8+STik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305701; c=relaxed/simple; bh=IhbufTRNj1fsqNMJmPo1i6lTZleZnqfHZ5ZVklTF00M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BI/Wa6vNBBYv/ahmkwlg7EQlHpOAZg4WzZOFwBuOmakpWfmNC+jbYVVFUBmc+9tspmSj5vLt6IfsOqZYqH9mYrgENbh87y14o72qiUO2jm4hsAaKIqD8s5x7rWl25pVUOJHkyHR85UGdKjj4l9smQWJrDZTxGFgztinmliIVsvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h6CG0M1Q; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4200ee78e56so31251185e9.3; Tue, 21 May 2024 08:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716305698; x=1716910498; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Z3RuTPxmjmQFVuJzzTgJATCtyYrNLyLjxNXWjIoUyj4=; b=h6CG0M1Q1BPfxAuH+hKUPgNFnShaX/GzyWoWleENe2wVw53sbqYaTNptBuGL4EhSVF V6mS6O84XiQOEveKT6TXhv+U4o6NiD2TfcYj6mpIhVIHse1AJqdtG1wWEsSXMC3+3VBq ywMyieq8VX8MtW38mLHXrYc1C+AVcMIMLwHfjPlj9nzexT7XOZJEPZuXESPHWUBQlojv JClRvCdX74yZL7loVku6U43v617cd89aNRDrElqtuzgiillpCnnouE8YNJID/UdFHuCb OkJ+1WUX83r//Dt5rbPSMaxniPKtc9qjPTtz9xQtH1kWhEeiXdnjCmbNGrNzqjtc5Vev f5DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716305698; x=1716910498; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z3RuTPxmjmQFVuJzzTgJATCtyYrNLyLjxNXWjIoUyj4=; b=VYCT2X7icj0NJkftvEkIjkrhqRe+jxwLHYhAtIr0w1Pe/oQDfEPH5eHa2qeO21aaVx /IK8JN6kp4Jgu3HaQfjuLqJ2OJHLKqXtLT3iLDcAAzNvk2DQcFj5cXHO2flujokFSF4k P1I0fmwMoPHBFJhOVd1eR352dADWoeBKErogIoxl+xWNnSwwrpPffp7l3N4Q9ZIWJ2py oBoK/AxD7QgryFqh4p85lCDb+kqEOx/I2KR8vs5T9KSFabcLKQnHtVnxDsin/Gheft/G 8zjdiz++UXzxK9Guxyu9AJ8gx707bRCne93iTW++Ngtx1HEKGcKHaEu2s6wYrwsmO3/I sH5g== X-Forwarded-Encrypted: i=1; AJvYcCXEUUyWQsV5w1kJmLiNDYpP4GeGOeraveiQ6NM0jD1ZHk8hLLBg2CFW1dI76xRpYVdRmcRneNKREq+G48r5eSuMTE22UWP7tpBnS36t X-Gm-Message-State: AOJu0YxTbpbdCZwrf6nfFJ5/kRMKSjo8Vvj2Gx+g7jEZyVAChYPZnlrg 26poKge0+21rBse29UV62Im4/D86vos2AajBleDBcFYheMpTcZTq6DPpP7UP X-Received: by 2002:a05:600c:450e:b0:41b:d8ef:8dcd with SMTP id 5b1f17b1804b1-41feac59ea0mr240309145e9.28.1716305698403; Tue, 21 May 2024 08:34:58 -0700 (PDT) Received: from [192.168.1.130] (51B6D146.unconfigured.pool.telekom.hu. [81.182.209.70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42013c5fa61sm368737285e9.40.2024.05.21.08.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:34:57 -0700 (PDT) From: =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= Date: Tue, 21 May 2024 17:34:53 +0200 Subject: [PATCH 3/3] iio: light: stk3310: support more stk3311 variants Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240521-stk3311-v1-3-07a4966b355a@gmail.com> References: <20240521-stk3311-v1-0-07a4966b355a@gmail.com> In-Reply-To: <20240521-stk3311-v1-0-07a4966b355a@gmail.com> To: Jonathan Cameron , Lars-Peter Clausen Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Barnab=C3=A1s_Cz=C3=A9m=C3=A1n?= X-Mailer: b4 0.13.0 Add support for more stk3311 variants like stk3311-a and stk3311-s34, they are register compatible but they have different chip ids. Signed-off-by: Barnabás Czémán --- drivers/iio/light/stk3310.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c index 5b3fe98af9c9..2905c9feff1a 100644 --- a/drivers/iio/light/stk3310.c +++ b/drivers/iio/light/stk3310.c @@ -37,6 +37,8 @@ #define STK3310_CHIP_ID_VAL 0x13 #define STK3311_CHIP_ID_VAL 0x1D +#define STK3311A_CHIP_ID_VAL 0x15 +#define STK3311S34_CHIP_ID_VAL 0x1E #define STK3311X_CHIP_ID_VAL 0x12 #define STK3335_CHIP_ID_VAL 0x51 #define STK3310_PSINT_EN 0x01 @@ -83,6 +85,8 @@ static const struct reg_field stk3310_reg_field_flag_nf = static const u8 stk3310_chip_ids[] = { STK3310_CHIP_ID_VAL, + STK3311A_CHIP_ID_VAL, + STK3311S34_CHIP_ID_VAL, STK3311X_CHIP_ID_VAL, STK3311_CHIP_ID_VAL, STK3335_CHIP_ID_VAL, -- 2.45.1