From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 959DAC55182 for ; Mon, 3 Aug 2026 17:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:To: From:Subject:Cc:Message-Id:Date:Content-Type:Content-Transfer-Encoding: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dEXExfanbitCxpSpt/vJSYBg/fzzx9uuMHQQps2p0mk=; b=Iqo6NhdLWKsfn38KZRcr7Wprqn rEGpmNXRnlUBfTvWufVjORqCmra4pKdpQx0bAZWwqTAFhC/WUreEP2GOnE79Dgybtn4VxT8e4aPtR vOaf17kNJL/P7+wrm6BVL9FLKAr/VlwSnVetfwTnl70JVseqFEctg//YXPcY32OWpiL2eKFFUl7wM iYL+kNsLYQBEyWOaRSnfc4kHJKcdvsjpJd2K0fsGgZlr/n2ea7rzWSyHmdhcoEuSTS90skA9ZN2+Z GP1oFhQCWxub4GaTkBaKE4ntHmgltp9QIX9Mv7m9WqWTs3GEX1O5oD0yKyTflud/VE5mfsmW4B7VC 69RuKqHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wqwSz-00000000EbB-0GNP; Mon, 03 Aug 2026 17:28:45 +0000 Received: from layka.disroot.org ([178.21.23.139]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wqwSv-00000000Eao-3D7F for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2026 17:28:43 +0000 Received: from mail01.layka.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9C99B887E9; Mon, 03 Aug 2026 19:28:36 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id zej7F0WdACzl; Mon, 3 Aug 2026 19:28:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1785778115; bh=GT+yfWLFAPExdbDJ5COk1PTpR3MMG3NsRmwyhEWOYjM=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=gdDyn7aUsb6UsGC1GJ4OsW/ceiz5FmLDYl2c/KmfW8Xbe4PCxxHdkgMvjUbH3YyFA hUgm0T9hqnYCAv72T6bvA50SjREcrWPqpx0KNi5YA820ywxUnsN3w3Ud3G+wDeIBxt 9jY/kxH4M9rvh9e7F/s8yys83uiKzBfMpacBr4KVe2QSujvzBmkBXcVY3xlbzW1nwX 6jz9F0Ypy8S90x7publ6Ybu/7e9KsKw9VjpS3DnPSgg12UkjsdSOdCPLF1XMjBJksd BGtBWAQ1B5Esv13XCjIN0jMS9066jAHGFNP72QakW45VanwWLmqDTHw82Y4dvQjDUF knZnmHY2I4Sug== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 03 Aug 2026 22:58:24 +0530 Message-Id: Cc: , , , , Subject: Re: [PATCH v3 2/3] iio: proximity: add driver for Sharp GP2AP070S proximity sensor From: "Kaustabh Chakraborty" To: "David Lechner" , "Kaustabh Chakraborty" , "Jonathan Cameron" , =?utf-8?q?Nuno_S=C3=A1?= , "Andy Shevchenko" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Peter Griffin" , "Alim Akhtar" References: <20260731-gp2ap070s-v3-0-d1f5cecf9fe7@disroot.org> <20260731-gp2ap070s-v3-2-d1f5cecf9fe7@disroot.org> <380b864f-6266-40fb-87a4-027afb422885@baylibre.com> In-Reply-To: <380b864f-6266-40fb-87a4-027afb422885@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260803_102842_244161_4E0D82F7 X-CRM114-Status: GOOD ( 11.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2026-08-01 11:41 -05:00, David Lechner wrote: > On 7/30/26 3:07 PM, Kaustabh Chakraborty wrote: >> The GP2AP070S is a proximity sensor designed and manufactured by Sharp >> Corporation. This sensor is used in mobile devices, including, but not >> limited to - the Samsung Galaxy J6. >>=20 >> The driver has been adopted from Samsung's downstream kernel >> implementation [1]. Due to the lack of public documentation about the >> schematics of this device. The downstream driver acts as the secondary >> source of information. Driver clarity has also been improved with the >> help of the GP2AP* drivers in iio/light. >>=20 >> Link: https://github.com/Exynos7870/android_kernel_samsung_universal7870= /blob/lineage-16.0/drivers/sensors/gp2ap070s.c [1] >> Signed-off-by: Kaustabh Chakraborty >> --- [...] >> +static void gp2ap070s_reset_action(void *private) >> +{ >> + struct gp2ap070s_drvdata *drvdata =3D private; > > Usually, we don't bother with a cast/local variable in these. > The void* can be passed directly as an arg. Yeah, but CFI will not be happy about that.