From nobody Fri Oct 2 06:18:27 2026 Received: from mail-244107.protonmail.ch (mail-244107.protonmail.ch [109.224.244.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC303485CCD for ; Tue, 4 Aug 2026 17:02:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.107 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862973; cv=none; b=PUl0dsL7OE48gYB68nMdnLaugjR5jmcKsZNjhV3u7hKL6+X81/hwEc9wfOYQIoUKxQjeJdk+XgDj9CeuALct97jVtKTcI3Q0KPVkFvAlhRLs2+PRJXGLDTSC/bQ7heUFEcSRPlU8MpbxwoFQYPq+kORMtDX+PQMQWls8Wus79tY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862973; c=relaxed/simple; bh=chSx2lJzLdFN5R/TGmmzpmF0sv5tO+hbYYUIO9ygA04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q+QIl0/934ejzjkLB67nJeh5QveO+X+Y+8uI7jAZSvfdDVzDOYC+gpibhYpl5YYr0UwMSzdtc+WJ9UMWV/ev61mN1tdkpFFOvhiZVrF18oIHnoYi/S9kULxSj7ySZzPMXQnOH1zxeMibXzXlfHOfns8vWbTYliMs7Hmf7xw3NMg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=uvC42Xep; arc=none smtp.client-ip=109.224.244.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="uvC42Xep" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862952; x=1786122152; bh=evxTxET7ULEQIK9aSBquN+mpS2+hq109UcF239xLq7o=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=uvC42XepPc0qzk3gQh1S6ACbxySI+cl4bjpjsIuUg8LRdWs1PYO+s/eloa2uAovu/ 5rlCNJE6hlPrcuopzWR76TltjOJKHMMThapT+8fLHHdwBPHz0xlR5IVjzwP81hYCKk WfbskVe7o02bNMBT+167thdJrhnOynVspQ2UZFCBRWIybOylNZaLnc1KQFyEBhiRtw jFoK7iMgBguge1xxRXPCbZVjkDXLul5icDYBPBpJdU1uEH/JI0AtVp46xyI/LMFfuo NGLpA8v6CCA/Cp3mj+RPs5Kh4phHjWZUmxjefEAqGqVNdxcsVQYR7ijGOk2RP8YbAC bDxarGMznqwrg== X-Pm-Submission-Id: 4hF0GG5PYHz1DFF3 From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:12 +0200 Subject: [PATCH v3 1/6] dt-bindings: iio: light: ltr501: Sort compatible enum array 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-1-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=783; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=chSx2lJzLdFN5R/TGmmzpmF0sv5tO+hbYYUIO9ygA04=; b=ECxa5aYePo/YDDZvf28mH5FgEO/cqbtsQhPahwMpu0PMMQhNTVGCnIao9WHhOJVfaikSNMkwW 1bOdaxyyvLvAa6V3dy2+Gy+JUhy5YFVLRJoEiVWVFz7azGGM9IFRuXm X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= Restore alphabetical sorting of the properties.compatible.enum array. Signed-off-by: Esben Haabendal Acked-by: Krzysztof Kozlowski Acked-by: Kuppuswamy Sathyanarayanan --- Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml= b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml index c8074f180a79..480523ca3750 100644 --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml @@ -15,9 +15,9 @@ allOf: properties: compatible: enum: + - liteon,ltr301 - liteon,ltr501 - liteon,ltr559 - - liteon,ltr301 =20 reg: maxItems: 1 --=20 2.55.0 From nobody Fri Oct 2 06:18:27 2026 Received: from mail-244106.protonmail.ch (mail-244106.protonmail.ch [109.224.244.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A38F6485CC1; Tue, 4 Aug 2026 17:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862975; cv=none; b=cwE7sQ28Tx0O8aK7azf2YX+NLRzwUxbgrGYVmKfhL73np4TDVc7NuX1OnntIyHpU9y//vIGZ0mAi2IY7FWVlNVGdFTbl9AQnc4TqNLgLMecR+kwMczXsadmSf1Hjg1uMwYIPIQ9P/72et9FppssrmZLKB43AG6YcDFSJ4YbqP3E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862975; c=relaxed/simple; bh=mvNJmDmVsp8KUVgsp1225/noNvG1ucZekie3JkvhBfQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mJM69CSlftgh2qJLUZRX0J9eRWeWpJfcG/UdU3MU6rF+QOU+EfFK9dTufNy1IRmLIqOgDqE7xT/agkPg23z0D7sMYAmhDu0CAnvWlky7lYEXN/Hx9PqjnzH+iB2ahxt7cy5hb5+yLdzWQZYFqZiVU/tG4GkkQJqcDPVGQYyLC80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=Gac8kTm9; arc=none smtp.client-ip=109.224.244.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="Gac8kTm9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862954; x=1786122154; bh=lx4b8MwYSUgqf30P2GLTCz9k8BWV9/z7MLxR4uMDIeo=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Gac8kTm9vDqxJdrwd+QBEEKGBhzUN3NAbJ05bHpNl6gKLLAzV0wE0/zKKZZW4IjdW SYhzKNi6ecQBJvfv2k3ND4mpgdZZJiD8V6qUWDWDw4usH1dlEzRB/2sUiZ84s8hnXf dp+I0I5dMm7z6A/Vubump7aoGnDgrd8g77YZIm4aO7Eb+jnJljGGek5m31tzK2SmkQ 54lF1pXlajXsCWFq3P8Lw8YnVcDf8qeAIMtK7IxFne1mJ3Lrqns81mV5Em9mVIiQhb zZtr4mgZcBCn6VsMkUlSqOw8DLG7zluGL+0+Bnejrm6KlNzxuj3zh9DSdSqFByGfni 3V+jv29McwrGg== X-Pm-Submission-Id: 4hF0GJ54DNz2ScQ9 From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:13 +0200 Subject: [PATCH v3 2/6] dt-bindings: iio: light: ltr501: Add missing ltr303 compatible 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-2-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=833; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=mvNJmDmVsp8KUVgsp1225/noNvG1ucZekie3JkvhBfQ=; b=7XyJcZuf9rAR3b+5GoZ0U0xlEHhEDr6NLTQOlcjfeHGfGumZeZOmBvDpHp+v6ktR02PBSNvLL imjqFGbrWhpDUijXGZupqeXwtAXUCstj+3tOmVNEraEpz6H3QqWBKgY X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= When support for ltr303 was back in 2021, the bindings documentation was not updated accordingly. Fixes: 7d71d289e1ba ("iio: light: ltr501: Added ltr303 driver support") Signed-off-by: Esben Haabendal Acked-by: Krzysztof Kozlowski Acked-by: Kuppuswamy Sathyanarayanan --- Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml= b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml index 480523ca3750..6234e2eaec2e 100644 --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml @@ -16,6 +16,7 @@ properties: compatible: enum: - liteon,ltr301 + - liteon,ltr303 - liteon,ltr501 - liteon,ltr559 =20 --=20 2.55.0 From nobody Fri Oct 2 06:18:27 2026 Received: from mail-43170.protonmail.ch (mail-43170.protonmail.ch [185.70.43.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ECCB483BD2 for ; Tue, 4 Aug 2026 17:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862996; cv=none; b=qRZhhCQwuvCxx+oBcTxtWcD18Q4pCEBW4v1wsbDyyDplnEeVWR7kfyf8a3u5FxjxajziJxbtd7m0rU6GNAyKivKR4RwyE81QXaMOUoLUZBHECUP6qhsElSeJOY9WCprJCDLwFApxJGKe7N7chxpkO31ZiLb4KuSSpRJxaGA2YPs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862996; c=relaxed/simple; bh=x31SJrXOIjTrbMAkq9hHMHKq8LaiEfoLkJ2njfoSJa0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b0K2GcNLfkIuCDjbjPEGtJYGynQ3dMADb54UvYLVPNlbzGV10ceB2VZhzCMutlICIgK/jdnJu0nK5DC2vG8uCKx5IR7ZSB86Kame0FN/5O0PD1LK1ivo/tBnVnWXd4CjKjx3R4g2sK57iYAdgGmN42FDf3dYQgBhp+tp111IubA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=Ci/Ojv30; arc=none smtp.client-ip=185.70.43.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="Ci/Ojv30" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862959; x=1786122159; bh=peG498DFEuWY7RvlZBKros/WMPQrKDMn6L/VmDkEcY4=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Ci/Ojv30rEau14BqKJ3uLHiv5xCgf/SOIFLCDEI6sKuBYy3M8ONdOp4FLYp5NYgrb ZtttSl1ic7sF2uRVzELA14R3U6EOLAZDAXzbAn6r+UwnJ7Bkd12DXL9jxj2Rw1B9Rl vLNcKnwm98uZGBJ0jL0D4kAqM5h1b5T7btMinz9hGre+qi6JHYm5jjK5Qg0ATINwZY psPZBF5vMG1b5iDWIg/G+s7uDp6HG7AxoRWrcVXi+GaavYu7sNiK5WM2+U5B8hspGx B5eyxKvJtdV/nSnltKbrjgqn14rdh7INTnrm75dfVnmuzg1jmEGk510Xtsax9v9KYV EGIuRdQBi8JUw== X-Pm-Submission-Id: 4hF0GM6Cxgz2Sccy From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:14 +0200 Subject: [PATCH v3 3/6] dt-bindings: iio: light: ltr501: Add ltr329 compatible 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-3-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=768; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=x31SJrXOIjTrbMAkq9hHMHKq8LaiEfoLkJ2njfoSJa0=; b=2GLdhXYo4ACWrz7XYTkr6ZjRjthBTZmrKOl7dnu2U4e96pRZzqO0O2//4ShC4pu/D1/MOcP1L thDi7/eo1I4D3bFFqGJxByS13t62R4poOciMdaRUzylhyal5fL+ja7H X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= LTR-329ALS-01 is an ambient light sensor similar to LTR-303ALS-01, but without interrupt support. Signed-off-by: Esben Haabendal Acked-by: Krzysztof Kozlowski Acked-by: Kuppuswamy Sathyanarayanan --- Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml= b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml index 6234e2eaec2e..8c9d6cee55b4 100644 --- a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml @@ -17,6 +17,7 @@ properties: enum: - liteon,ltr301 - liteon,ltr303 + - liteon,ltr329 - liteon,ltr501 - liteon,ltr559 =20 --=20 2.55.0 From nobody Fri Oct 2 06:18:27 2026 Received: from mail-244107.protonmail.ch (mail-244107.protonmail.ch [109.224.244.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DAF2485511 for ; Tue, 4 Aug 2026 17:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.107 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862982; cv=none; b=MkrLfNcadFv18z+/Od43lFpBvOos9chwrwHOiw8X6THhXj7KnzLEeVrPKzE/OpwA46xF+4QjqfRQZ8LfZiXEdgcMazaaL9EbCuHQgfFK3KMgmJB2atnP38rAw0zv8Fba0RoVE9RP27QRzUl8hOBJO0gNNvVNPHJbww8zcBM7hNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862982; c=relaxed/simple; bh=VXyhQMMg8CN0cFJ9z4GKE2E+8am/m1lwXpQe7fanMH0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CaeuRDWibjbJppEnuVfoE9qgmuRr5u8S6ObJHuI0NkB1RS45yg+bSDaChfrY7ws31y+H+Mv9SKu+zpBHpiRiAe2MeJo6Q1UfWoK1B3uJU7qWs60+d7wXuVEBWzd7mw1mSworbFe3UtxTBiDi7IJpEEILKyjCrG2Nj1kmfK7aYDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=EMoCDnmz; arc=none smtp.client-ip=109.224.244.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="EMoCDnmz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862960; x=1786122160; bh=yK0E56Rq3jAFi303hsKEKdRRobQvbPJyMbQ/anb9Y+g=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=EMoCDnmzTMQWEiYQb8FXYvJPpNVl+NZREc5/SuH9n1Kwje9wwXe59SxhEzHWzrr67 pB2KPnuSTr8668+ECtMg5zvlxAa7B/qDkc/ZAfmQKizqwpEGioCRnQPRAzO9mcnq7h 77MBGPWgL49eWUVWpG2Z9f508FlxkVtWxp4xAmtYi+Vjo7+yKi2j657DfneZKXB52/ 132Icmib8gVIH8lzk6Mcnhpmjc6057bF4GNBiSI6Rz3BfLijpjXYkKajh7sbLm9jMJ Lm9/cgZT+KGSMIMvKGZ1NBeULDIJA2lxLFW9QHeMWLMbpOh5RUp4GPRAOyXXJUkWNL v9paFXlcjUT1Q== X-Pm-Submission-Id: 4hF0GR2WCdz2Sd49 From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:15 +0200 Subject: [PATCH v3 4/6] iio: light: ltr501: Power down chip if request irq fails 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-4-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , stable@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=1111; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=VXyhQMMg8CN0cFJ9z4GKE2E+8am/m1lwXpQe7fanMH0=; b=oniRpbGTVaUmGA/y9GvaoXFbMDzOmE7E4Le9PG8AE+an1iAcldEjL5LIdUJyU70/kCRMl/EOh LXDZZlG9OxuCW1mWUi58kdUftTWoU5lf/zRGAw2FEcKuHth9+NIOfWr X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= In case devm_request_threaded_irq() failed, we were leaving the chip powered instead of powering it down again. Power down the chip switching ALS and PS modes to standby. The dev_err() message was causing duplicated error messages, as devm_request_threaded_irq() calls dev_err_probe() on failure. Fixes: 7ac702b3144b ("iio: ltr501: Add interrupt support") Cc: stable@vger.kernel.org Signed-off-by: Esben Haabendal Acked-by: Kuppuswamy Sathyanarayanan --- drivers/iio/light/ltr501.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 7d045be78c6d..b36bd10a0262 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -1537,11 +1537,8 @@ static int ltr501_probe(struct i2c_client *client) IRQF_ONESHOT, "ltr501_thresh_event", indio_dev); - if (ret) { - dev_err(&client->dev, "request irq (%d) failed\n", - client->irq); - return ret; - } + if (ret) + goto powerdown_on_error; } else { indio_dev->info =3D data->chip_info->info_no_irq; } --=20 2.55.0 From nobody Fri Oct 2 06:18:27 2026 Received: from mail-244107.protonmail.ch (mail-244107.protonmail.ch [109.224.244.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD7AB481244; Tue, 4 Aug 2026 17:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.107 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862989; cv=none; b=bT92j5K8u3QwQz3MecB/5mRiRn1WZZLFTHCi7Tugx/CvO7G86WtWJc6PoynrH4oC3u0eVMQMMchAWsiHhRKBHyE1TBiSqAVmWam5vrE5XojuRYjer4lf91QBIZEE9uN6sM/8XdACVNnl2YY+DMOyJ8nIo8TDxwhkJAfdYs5RP8s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862989; c=relaxed/simple; bh=uhh+05uz8LcoPPQbMVpi/sd93nGPonQ4lc8EQ8qC7Es=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wn+TPDPBUQZp+sLKYG3Qag28Q1Vg7ydnhr5RH+jZEXIwdAtP8LEoMiOXg1GcRCAcYtMI0pgAx6BG4ngt98ifRBkW+FVL8SsRoAw915s3l2EFuzTM1KCfR+29Bw0mOXCwF6XAGOQ3cmkUtoY6DXdGN/3BX9PBl6/SKhf2HeCuW2I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=iycGRAjN; arc=none smtp.client-ip=109.224.244.107 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="iycGRAjN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862963; x=1786122163; bh=wYuTCzJgQQQN8D13XXNxpJjZiLh5lRfz2NNmdAZMVBE=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=iycGRAjND7a6It6bq4wIOWhaqexYTB/AS+tULb+nRlPhST/BrN3GmZ/0eQGGby0V9 tHRt2EPLBl6ZjN5n+ZF0jtFZvpPsvchmHH4+7paN6YPAt2p/hWNdEtU6ukCn+PteKv n8wv2Axglaqdwj4T4jXd4zUHd7PYZ/CD0MU8GJ0oIF810WCR/g3L3IDw5bCP7MjHtY 3ZQGtHtUYs/CcXfizWmYrCrEHyLF4T1pEkQuGr1/fb9Op/fZkvbl2mcVJevXEz127O +y2Yy4v7nVLDgWr9VXrLBWXYUqNVGIlZYpyhN8JsjVZczPECkjHhBZRYg02n0jq12B NKFwkCVHzRIlw== X-Pm-Submission-Id: 4hF0GT3YNfz2Scd7 From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:16 +0200 Subject: [PATCH v3 5/6] iio: light: ltr501: Add ltr329 driver support 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-5-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=4450; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=uhh+05uz8LcoPPQbMVpi/sd93nGPonQ4lc8EQ8qC7Es=; b=gnztkhtQA9ggR2JXcLNPbxfWbfiP7Y3EPgEmibxTkzKzR0mJHVvVlf4H4JR1Gm+38Ae/nNTmZ owibJy6JFEIBCTFed1PouPMkVTitVecxTAIducHKnN4KFxuygEYCPOZ X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= This adds support for the LTR-329ALS-01 chip, which is similar to LTR-303ALS-01, except for interrupt, which LTR-329ALS-01 chip does not have. Reviewed-by: Nuno S=C3=A1 Signed-off-by: Esben Haabendal Acked-by: Kuppuswamy Sathyanarayanan --- drivers/iio/light/ltr501.c | 48 ++++++++++++++++++++++++++++++++++++++++--= ---- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index b36bd10a0262..9d37872ceec5 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -9,6 +9,7 @@ * TODO: IR LED characteristics */ =20 +#include #include #include #include @@ -94,6 +95,7 @@ enum { ltr559, ltr301, ltr303, + ltr329, }; =20 struct ltr501_gain { @@ -140,6 +142,7 @@ struct ltr501_chip_info { u8 als_mode_active; u8 als_gain_mask; u8 als_gain_shift; + bool no_irq_support; struct iio_chan_spec const *channels; const int no_channels; const struct iio_info *info; @@ -178,6 +181,11 @@ static const struct ltr501_samp_table ltr501_ps_samp_t= able[] =3D { {500000, 2000000} }; =20 +static bool ltr501_has_irq_support(const struct ltr501_chip_info *info) +{ + return !info->no_irq_support; +} + static int ltr501_match_samp_freq(const struct ltr501_samp_table *tab, int len, int val, int val2) { @@ -821,6 +829,9 @@ static int __ltr501_write_raw(struct iio_dev *indio_dev, if (ret < 0) return ret; =20 + if (!ltr501_has_irq_support(info)) + return ret; + /* update persistence count when changing frequency */ ret =3D ltr501_write_intr_prst(data, chan->type, 0, data->als_period); @@ -840,6 +851,9 @@ static int __ltr501_write_raw(struct iio_dev *indio_dev, if (ret < 0) return ret; =20 + if (!ltr501_has_irq_support(info)) + return ret; + /* update persistence count when changing frequency */ ret =3D ltr501_write_intr_prst(data, chan->type, 0, data->ps_period); @@ -1257,6 +1271,18 @@ static const struct ltr501_chip_info ltr501_chip_inf= o_tbl[] =3D { .channels =3D ltr301_channels, .no_channels =3D ARRAY_SIZE(ltr301_channels), }, + [ltr329] =3D { + .partid =3D 0x0A, + .als_gain =3D ltr559_als_gain_tbl, + .als_gain_tbl_size =3D ARRAY_SIZE(ltr559_als_gain_tbl), + .als_mode_active =3D BIT(0), + .als_gain_mask =3D BIT(2) | BIT(3) | BIT(4), + .als_gain_shift =3D 2, + .no_irq_support =3D true, + .info_no_irq =3D <r301_info_no_irq, + .channels =3D ltr301_channels, + .no_channels =3D ARRAY_SIZE(ltr301_channels), + }, }; =20 static int ltr501_write_contr(struct ltr501_data *data, u8 als_val, u8 ps_= val) @@ -1369,13 +1395,15 @@ static int ltr501_init(struct ltr501_data *data) =20 data->ps_contr =3D status | LTR501_CONTR_ACTIVE; =20 - ret =3D ltr501_read_intr_prst(data, IIO_INTENSITY, &data->als_period); - if (ret < 0) - return ret; + if (ltr501_has_irq_support(data->chip_info)) { + ret =3D ltr501_read_intr_prst(data, IIO_INTENSITY, &data->als_period); + if (ret < 0) + return ret; =20 - ret =3D ltr501_read_intr_prst(data, IIO_PROXIMITY, &data->ps_period); - if (ret < 0) - return ret; + ret =3D ltr501_read_intr_prst(data, IIO_PROXIMITY, &data->ps_period); + if (ret < 0) + return ret; + } =20 return ltr501_write_contr(data, data->als_contr, data->ps_contr); } @@ -1531,6 +1559,12 @@ static int ltr501_probe(struct i2c_client *client) return ret; =20 if (client->irq > 0) { + if (!ltr501_has_irq_support(data->chip_info)) { + dev_err(&client->dev, "chip does not support irq\n"); + ret =3D -EINVAL; + goto powerdown_on_error; + } + ret =3D devm_request_threaded_irq(&client->dev, client->irq, NULL, ltr501_interrupt_handler, IRQF_TRIGGER_FALLING | @@ -1601,6 +1635,7 @@ static const struct i2c_device_id ltr501_id[] =3D { { .name =3D "ltr559", .driver_data =3D ltr559 }, { .name =3D "ltr301", .driver_data =3D ltr301 }, { .name =3D "ltr303", .driver_data =3D ltr303 }, + { .name =3D "ltr329", .driver_data =3D ltr329 }, { } }; MODULE_DEVICE_TABLE(i2c, ltr501_id); @@ -1610,6 +1645,7 @@ static const struct of_device_id ltr501_of_match[] = =3D { { .compatible =3D "liteon,ltr559", }, { .compatible =3D "liteon,ltr301", }, { .compatible =3D "liteon,ltr303", }, + { .compatible =3D "liteon,ltr329", }, { } }; MODULE_DEVICE_TABLE(of, ltr501_of_match); --=20 2.55.0 From nobody Fri Oct 2 06:18:27 2026 Received: from mail-244106.protonmail.ch (mail-244106.protonmail.ch [109.224.244.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 096C9486B85 for ; Tue, 4 Aug 2026 17:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.106 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862981; cv=none; b=FQFwYR5EySnXquOoepdPDHEZsD9c9+uAraP3DG2eWBzBqI8AQtKNtPthtECLnnUl/qUnZrTNB+qBZWxdW0gBaXsZhu2JFCepkM4nuvnDWZp70G5XuoiXdB1GKrN4x7wpn61kfc7wtPCkrHHhcA1zm5XhXRg597lnNhdMG94W+vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785862981; c=relaxed/simple; bh=6+uw9qwI4elu+EKWJGE7x2mViOFuPy7tkAX9JM37H4o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lQfxNsD73ILHlOwN3F0pqHJamxxP0a2kqhHheqbsdNHGP/0Q8KLBSbvAt4EZwA9ViJDrlTaibJFX8M352tHWpdyYPANwRAqv5N+LEbSawf3tBX6OBR8TO0VT1oyS1Q1cT2tqHoDW75NONNtoO3sSz4PNThvGieoxrsBPqRlPKBM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=SJYjWb+l; arc=none smtp.client-ip=109.224.244.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="SJYjWb+l" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail3; t=1785862965; x=1786122165; bh=ZJ0nnDnFpv+f9+HcFo7GV33ka+iwzZblhxr45R1r7oo=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=SJYjWb+lwGzduWJcrtzcW6DBgtv4wQZaxp7GOS0oNzubCpGQ8mrXIdJ81038t0NXF fPIG6s7erCwBsO1cnydGlw7k8tSqHiDMRttNezHAFJC4+LRnxSFuIT52yE3f8toU0L 0PB2riToDqkEExD05GSrpzB9ux3fm+bt3qzvQfUUJj+SeWeij243w/Sl/OLf10f035 3Qw5wj3TGlQ+TZ3Z0hqVLfVXZNDJVzKvsgGmF7EcbEE2n30IVVwXG5AJxtXnhwCriJ Rb9fKd9NIQehAhGoKkuI+BwK/gi8IxbuHyvvilARyUdcYJFbBM+0FsOKMYlmDpggN8 axLevO9v0YkMQ== X-Pm-Submission-Id: 4hF0GW5SfMz1DDrp From: Esben Haabendal Date: Tue, 04 Aug 2026 19:02:17 +0200 Subject: [PATCH v3 6/6] iio: light: ltr501: Fix sorting order of device arrays 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: quoted-printable Message-Id: <20260804-liteon-ltr329-v3-6-c6b768c7c745@geanix.com> References: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> In-Reply-To: <20260804-liteon-ltr329-v3-0-c6b768c7c745@geanix.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nikita Travkin , Maslov Dmitry , Kuppuswamy Sathyanarayanan Cc: Esben Haabendal , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785862947; l=4019; i=esben@geanix.com; s=20240523; h=from:subject:message-id; bh=6+uw9qwI4elu+EKWJGE7x2mViOFuPy7tkAX9JM37H4o=; b=PcN7iu5vDPDcFFXyGbrCXi39I2LGbBD/4Om1Lqhf0AiLISabFnWVmmSLSmr3uQg8lf/dKn5k9 C/UkLayGOfwD3oVDKzqGVqLUuToNQGyJ4ZG42EEYfiQVbbU7s26yBSt X-Developer-Key: i=esben@geanix.com; a=ed25519; pk=PbXoezm+CERhtgVeF/QAgXtEzSkDIahcWfC7RIXNdEk= Using alphanumerical sort order for these should help reduce merge conflicts. Signed-off-by: Esben Haabendal Acked-by: Kuppuswamy Sathyanarayanan --- drivers/iio/light/ltr501.c | 70 +++++++++++++++++++++++-------------------= ---- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/iio/light/ltr501.c b/drivers/iio/light/ltr501.c index 9d37872ceec5..dbdd69a90ee6 100644 --- a/drivers/iio/light/ltr501.c +++ b/drivers/iio/light/ltr501.c @@ -91,11 +91,11 @@ struct ltr501_samp_table { #define LTR501_RESERVED_GAIN -1 =20 enum { - ltr501 =3D 0, - ltr559, - ltr301, + ltr301 =3D 0, ltr303, ltr329, + ltr501, + ltr559, }; =20 struct ltr501_gain { @@ -1219,34 +1219,6 @@ static const struct iio_info ltr301_info =3D { }; =20 static const struct ltr501_chip_info ltr501_chip_info_tbl[] =3D { - [ltr501] =3D { - .partid =3D 0x08, - .als_gain =3D ltr501_als_gain_tbl, - .als_gain_tbl_size =3D ARRAY_SIZE(ltr501_als_gain_tbl), - .ps_gain =3D ltr501_ps_gain_tbl, - .ps_gain_tbl_size =3D ARRAY_SIZE(ltr501_ps_gain_tbl), - .als_mode_active =3D BIT(0) | BIT(1), - .als_gain_mask =3D BIT(3), - .als_gain_shift =3D 3, - .info =3D <r501_info, - .info_no_irq =3D <r501_info_no_irq, - .channels =3D ltr501_channels, - .no_channels =3D ARRAY_SIZE(ltr501_channels), - }, - [ltr559] =3D { - .partid =3D 0x09, - .als_gain =3D ltr559_als_gain_tbl, - .als_gain_tbl_size =3D ARRAY_SIZE(ltr559_als_gain_tbl), - .ps_gain =3D ltr559_ps_gain_tbl, - .ps_gain_tbl_size =3D ARRAY_SIZE(ltr559_ps_gain_tbl), - .als_mode_active =3D BIT(0), - .als_gain_mask =3D BIT(2) | BIT(3) | BIT(4), - .als_gain_shift =3D 2, - .info =3D <r501_info, - .info_no_irq =3D <r501_info_no_irq, - .channels =3D ltr501_channels, - .no_channels =3D ARRAY_SIZE(ltr501_channels), - }, [ltr301] =3D { .partid =3D 0x08, .als_gain =3D ltr501_als_gain_tbl, @@ -1283,6 +1255,34 @@ static const struct ltr501_chip_info ltr501_chip_inf= o_tbl[] =3D { .channels =3D ltr301_channels, .no_channels =3D ARRAY_SIZE(ltr301_channels), }, + [ltr501] =3D { + .partid =3D 0x08, + .als_gain =3D ltr501_als_gain_tbl, + .als_gain_tbl_size =3D ARRAY_SIZE(ltr501_als_gain_tbl), + .ps_gain =3D ltr501_ps_gain_tbl, + .ps_gain_tbl_size =3D ARRAY_SIZE(ltr501_ps_gain_tbl), + .als_mode_active =3D BIT(0) | BIT(1), + .als_gain_mask =3D BIT(3), + .als_gain_shift =3D 3, + .info =3D <r501_info, + .info_no_irq =3D <r501_info_no_irq, + .channels =3D ltr501_channels, + .no_channels =3D ARRAY_SIZE(ltr501_channels), + }, + [ltr559] =3D { + .partid =3D 0x09, + .als_gain =3D ltr559_als_gain_tbl, + .als_gain_tbl_size =3D ARRAY_SIZE(ltr559_als_gain_tbl), + .ps_gain =3D ltr559_ps_gain_tbl, + .ps_gain_tbl_size =3D ARRAY_SIZE(ltr559_ps_gain_tbl), + .als_mode_active =3D BIT(0), + .als_gain_mask =3D BIT(2) | BIT(3) | BIT(4), + .als_gain_shift =3D 2, + .info =3D <r501_info, + .info_no_irq =3D <r501_info_no_irq, + .channels =3D ltr501_channels, + .no_channels =3D ARRAY_SIZE(ltr501_channels), + }, }; =20 static int ltr501_write_contr(struct ltr501_data *data, u8 als_val, u8 ps_= val) @@ -1631,21 +1631,21 @@ static const struct acpi_device_id ltr_acpi_match[]= =3D { MODULE_DEVICE_TABLE(acpi, ltr_acpi_match); =20 static const struct i2c_device_id ltr501_id[] =3D { - { .name =3D "ltr501", .driver_data =3D ltr501 }, - { .name =3D "ltr559", .driver_data =3D ltr559 }, { .name =3D "ltr301", .driver_data =3D ltr301 }, { .name =3D "ltr303", .driver_data =3D ltr303 }, { .name =3D "ltr329", .driver_data =3D ltr329 }, + { .name =3D "ltr501", .driver_data =3D ltr501 }, + { .name =3D "ltr559", .driver_data =3D ltr559 }, { } }; MODULE_DEVICE_TABLE(i2c, ltr501_id); =20 static const struct of_device_id ltr501_of_match[] =3D { - { .compatible =3D "liteon,ltr501", }, - { .compatible =3D "liteon,ltr559", }, { .compatible =3D "liteon,ltr301", }, { .compatible =3D "liteon,ltr303", }, { .compatible =3D "liteon,ltr329", }, + { .compatible =3D "liteon,ltr501", }, + { .compatible =3D "liteon,ltr559", }, { } }; MODULE_DEVICE_TABLE(of, ltr501_of_match); --=20 2.55.0