commit | 7df92b88d20d780be6f23b4f5458a1faab31d48c | [log] [tgz] |
---|---|---|
author | Peter Nordström <pnordstrom@google.com> | Wed Apr 03 16:27:16 2019 -0700 |
committer | June Tate-Gans <jtgans@google.com> | Thu Apr 04 15:03:28 2019 -0700 |
tree | 65fb2644e3cdb6a3e10f723f9fd3957d3d915de5 | |
parent | 30733fb3c90b4d1c7a6d4efab5e2a889ca6b9db7 [diff] |
ov5645: Fix incorrect behavior of ov5645_set_regs The sysfs functionality of setting registers for the OV5645 camera was broken. This is purely for development and debugging functionality so does not fix any "real" bugs. Change-Id: I991e1319aaf58cda66bdeac55f035f72c16b9441
diff --git a/drivers/media/platform/mxc/capture/ov5645_mipi_v2.c b/drivers/media/platform/mxc/capture/ov5645_mipi_v2.c index 3c0e3d2..6ae6aa3 100644 --- a/drivers/media/platform/mxc/capture/ov5645_mipi_v2.c +++ b/drivers/media/platform/mxc/capture/ov5645_mipi_v2.c
@@ -3439,7 +3439,7 @@ if (in_string == NULL) return 0; - while (true) { + while (in_string != NULL) { reg = strsep(&in_string, ","); cnt = sscanf(reg, "%x", ®_addr); if (cnt != 1)