Inter-revision diff: patch 8

Comparing v3 (message) to v8 (message)

--- v3
+++ v8
@@ -1,64 +1,36 @@
-There a no users left to the function as they all converted to
-devm_rpi_firmware_get(). Just get rid of it.
+There is no use for the firmware interface after getting the touch
+buffer address, so release it.
 
 Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
+Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
 ---
- drivers/firmware/raspberrypi.c             | 17 -----------------
- include/soc/bcm2835/raspberrypi-firmware.h |  6 ------
- 2 files changed, 23 deletions(-)
 
-diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
-index 74bdb3bde9dc..67f7105f3fd2 100644
---- a/drivers/firmware/raspberrypi.c
-+++ b/drivers/firmware/raspberrypi.c
-@@ -297,23 +297,6 @@ static void rpi_firmware_put(void *data)
- 	wake_up(&fw->wait);
- }
- 
--/**
-- * rpi_firmware_get - Get pointer to rpi_firmware structure.
-- * @firmware_node:    Pointer to the firmware Device Tree node.
-- *
-- * Returns NULL is the firmware device is not ready.
-- */
--struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node)
--{
--	struct platform_device *pdev = of_find_device_by_node(firmware_node);
+Changes since v5:
+ - Correct commit message
+
+Changes since v3:
+ - Release firmware handle in probe function
+
+Changes since v2:
+ - Use devm_rpi_firmware_get(), instead of remove function
+
+ drivers/input/touchscreen/raspberrypi-ts.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/input/touchscreen/raspberrypi-ts.c b/drivers/input/touchscreen/raspberrypi-ts.c
+index ef6aaed217cf..5000f5fd9ec3 100644
+--- a/drivers/input/touchscreen/raspberrypi-ts.c
++++ b/drivers/input/touchscreen/raspberrypi-ts.c
+@@ -160,7 +160,7 @@ static int rpi_ts_probe(struct platform_device *pdev)
+ 	touchbuf = (u32)ts->fw_regs_phys;
+ 	error = rpi_firmware_property(fw, RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF,
+ 				      &touchbuf, sizeof(touchbuf));
 -
--	if (!pdev)
--		return NULL;
--
--	return platform_get_drvdata(pdev);
--}
--EXPORT_SYMBOL_GPL(rpi_firmware_get);
--
- /**
-  * devm_rpi_firmware_get - Get pointer to rpi_firmware structure.
-  * @firmware_node:    Pointer to the firmware Device Tree node.
-diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h
-index 8fe64f53a394..eaa4e516e4c6 100644
---- a/include/soc/bcm2835/raspberrypi-firmware.h
-+++ b/include/soc/bcm2835/raspberrypi-firmware.h
-@@ -140,7 +140,6 @@ int rpi_firmware_property(struct rpi_firmware *fw,
- 			  u32 tag, void *data, size_t len);
- int rpi_firmware_property_list(struct rpi_firmware *fw,
- 			       void *data, size_t tag_size);
--struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node);
- struct rpi_firmware *devm_rpi_firmware_get(struct device *dev,
- 					   struct device_node *firmware_node);
- #else
-@@ -156,11 +155,6 @@ static inline int rpi_firmware_property_list(struct rpi_firmware *fw,
- 	return -ENOSYS;
- }
- 
--static inline struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node)
--{
--	return NULL;
--}
--
- static inline struct rpi_firmware *devm_rpi_firmware_get(struct device *dev,
- 					struct device_node *firmware_node)
- {
++	rpi_firmware_put(fw);
+ 	if (error || touchbuf != 0) {
+ 		dev_warn(dev, "Failed to set touchbuf, %d\n", error);
+ 		return error;
 -- 
-2.29.1
+2.30.1
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help