Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3212743ybt; Sat, 4 Jul 2020 09:31:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf1/Cka5UQefM+A1liWbuHuqybEss9Gpii9BMVvTaOe7uwF87DZ7Qa7g2d5GWYMj96vEev X-Received: by 2002:a17:906:8595:: with SMTP id v21mr37916932ejx.333.1593880274728; Sat, 04 Jul 2020 09:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593880274; cv=none; d=google.com; s=arc-20160816; b=sVmZOvE+gJT3C40p7d555D4MaxQUDCFKVt84/t1o6tK71Lh6EQsqFjAatiu7vMYnto Reh/KGb0iznDN9GurpXjjG2/9aXozNxfgtskXdUnNytMQOLCH/MWVoL3FXA+QrF/4dqh dqbSUpA+q3H2AMvH4sFfbsfV9vtcTlw2w4FVHYTh+pylA7/DJDP1rqeiUeY5AScswvt+ pS+AvAo9FOnlQRiQRauhltzR/Dsih2y4WvwpLc1EeUTe8cPIXVHnU+k5T2GJxNpff5Eu E9aJa6gt1F0JMf1R9HSkQnW5jzOXvFOK1+G8TcMtC6gCaQqJg4fM9Y/P7LYWZoKlhjJs qd5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WXEbsRgo2wErJ4ZQyUYVgDk+y9+OYHMvowPQi5J/83Y=; b=VTIPqclBcRI01b6MnvaEgFL7AUFKoE62cUfgeYT6Y0z16bGM0mSchN5xTQwGq70t1A uS+uI9H99kLArVddpT8WAjVuxogRTj9w3ZrltWJJfnfscCvYp45RdzMVM/2CHHUhEoCg SjIbQo1M17y1qcd5EJdBgBtxCABDmLdyBRzk4CQ3xqimI21u3qdQuTfFizquv9f5YiHV 8/iwqIAPRqmDoc+iFr5jVJj8vwm5ojwBxt5jSllxdCQq7HVYasA8FT74GqMdFyevetLQ P3Ml+nMgcMYPT+1qO8kK9mEEVCnfjNTx/OGPwlVtVT3/MBkRhzOX82rl4ZewRNibRJkh N8wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgHHxI2X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs20si10036363edb.444.2020.07.04.09.30.51; Sat, 04 Jul 2020 09:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgHHxI2X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgGDQ3V (ORCPT + 99 others); Sat, 4 Jul 2020 12:29:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:58224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbgGDQ3V (ORCPT ); Sat, 4 Jul 2020 12:29:21 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3BC66206B6; Sat, 4 Jul 2020 16:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593880160; bh=5uivsfNv00vVOwSQdVj9OXMpaD34v95Uj4LXUPLTFWU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AgHHxI2Xg+fwSDdyC+obuEolaT6UeI2CrljEPQYvdEyk0f2g7gxRLhObL9qnbpFbp UyB0jq/KwNFOZjYIi4cG1uPcIway9yg/8c8vlOmA6eQEIRxn5XhTkzMaS2oku5KUW7 ddmp0Ru+p1eR4PU5rB8i3PXf8tGkbO0RhB/SMPLU= Date: Sat, 4 Jul 2020 17:29:16 +0100 From: Jonathan Cameron To: Ondrej Jirman Cc: linux-kernel@vger.kernel.org, Icenowy Zheng , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Luca Weiss , linux-iio@vger.kernel.org (open list:IIO SUBSYSTEM AND DRIVERS) Subject: Re: [PATCH] iio: light: stk3310: add chip id for STK3311-X variant Message-ID: <20200704172916.7a8a7359@archlinux> In-Reply-To: <20200703194406.110855-1-megous@megous.com> References: <20200703194406.110855-1-megous@megous.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Jul 2020 21:44:05 +0200 Ondrej Jirman wrote: > From: Icenowy Zheng > > The STK3311 chip has a variant called STK3311-X, which has a different > chip id of 0x12. > > Add the chip id to the driver. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Ondrej Jirman Given this is clearly not quite compatible with the stk3311 probably best to also add a an id to the of id table. Any idea what else is different? Thanks, Jonathan > --- > drivers/iio/light/stk3310.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/iio/light/stk3310.c b/drivers/iio/light/stk3310.c > index 185c24a75ae6..1a8401d198a4 100644 > --- a/drivers/iio/light/stk3310.c > +++ b/drivers/iio/light/stk3310.c > @@ -37,6 +37,7 @@ > > #define STK3310_CHIP_ID_VAL 0x13 > #define STK3311_CHIP_ID_VAL 0x1D > +#define STK3311X_CHIP_ID_VAL 0x12 > #define STK3335_CHIP_ID_VAL 0x51 > #define STK3310_PSINT_EN 0x01 > #define STK3310_PS_MAX_VAL 0xFFFF > @@ -453,6 +454,7 @@ static int stk3310_init(struct iio_dev *indio_dev) > > if (chipid != STK3310_CHIP_ID_VAL && > chipid != STK3311_CHIP_ID_VAL && > + chipid != STK3311X_CHIP_ID_VAL && > chipid != STK3335_CHIP_ID_VAL) { > dev_err(&client->dev, "invalid chip id: 0x%x\n", chipid); > return -ENODEV;