soc_ov9640: rename ov9640.h to soc_ov9640.h

Message ID 4cfd150c-ba3c-f886-a121-23d48dcd0e89@xs4all.nl (mailing list archive)
State Rejected, archived
Headers

Commit Message

Hans Verkuil Jan. 17, 2019, 9:27 a.m. UTC
This avoids confusion with the non-soc-camera ov9640.h.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
Having two headers by the same name caused a daily build error. Fix this by
renaming the soc_camera ov9640.h header.

BTW, is there any reason why the soc_camera ov9640 driver can't be
removed altogether? It's not used anywhere anymore.
---
 drivers/media/i2c/soc_camera/soc_ov9640.c               | 2 +-
 drivers/media/i2c/soc_camera/{ov9640.h => soc_ov9640.h} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename drivers/media/i2c/soc_camera/{ov9640.h => soc_ov9640.h} (100%)
  

Patch

diff --git a/drivers/media/i2c/soc_camera/soc_ov9640.c b/drivers/media/i2c/soc_camera/soc_ov9640.c
index eb91b8240083..0d3de48de0e4 100644
--- a/drivers/media/i2c/soc_camera/soc_ov9640.c
+++ b/drivers/media/i2c/soc_camera/soc_ov9640.c
@@ -32,7 +32,7 @@ 
 #include <media/v4l2-common.h>
 #include <media/v4l2-ctrls.h>

-#include "ov9640.h"
+#include "soc_ov9640.h"

 #define to_ov9640_sensor(sd)	container_of(sd, struct ov9640_priv, subdev)

diff --git a/drivers/media/i2c/soc_camera/ov9640.h b/drivers/media/i2c/soc_camera/soc_ov9640.h
similarity index 100%
rename from drivers/media/i2c/soc_camera/ov9640.h
rename to drivers/media/i2c/soc_camera/soc_ov9640.h