lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 10 Jun 2024 17:08:14 +0200
From: Benjamin Mugnier <benjamin.mugnier@...s.st.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>, Rob Herring <robh@...nel.org>,
        Krzysztof Kozlowski <krzk+dt@...nel.org>,
        Conor Dooley <conor+dt@...nel.org>,
        Sylvain Petinot <sylvain.petinot@...s.st.com>,
        Sakari Ailus
	<sakari.ailus@...ux.intel.com>,
        Laurent Pinchart
	<laurent.pinchart@...asonboard.com>
CC: <linux-media@...r.kernel.org>, <devicetree@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>,
        Benjamin Mugnier
	<benjamin.mugnier@...s.st.com>
Subject: [PATCH 2/3] media: vgxy61: Add legacy compatible string

As the driver has been renamed from 'st-vgxy61' to 'vgxy61', its
compatible string has been updated to reflect this change. Therefore old
device trees will not work anymore.
Add the old driver name as another compatible name to handle the
retro compatibility.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@...s.st.com>
---
 drivers/media/i2c/vgxy61.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/i2c/vgxy61.c b/drivers/media/i2c/vgxy61.c
index 30378e962016..ca3b43608dad 100644
--- a/drivers/media/i2c/vgxy61.c
+++ b/drivers/media/i2c/vgxy61.c
@@ -1867,6 +1867,11 @@ static void vgxy61_remove(struct i2c_client *client)
 }
 
 static const struct of_device_id vgxy61_dt_ids[] = {
+	{ .compatible = "st,vgxy61" },
+	/*
+	 * Previously the driver was named 'st-vgxy61' instead of simply
+	 * 'vgxy61', keep it for retrocompatibility purposes.
+	 */
 	{ .compatible = "st,st-vgxy61" },
 	{ /* sentinel */ }
 };
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ