projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334c8c1
)
drm: bridge: it66121: Use regmap_noinc_read()
author
Paul Cercueil
<paul@crapouillou.net>
Wed, 14 Dec 2022 12:58:14 +0000
(13:58 +0100)
committer
Paul Cercueil
<paul@crapouillou.net>
Fri, 16 Dec 2022 10:39:24 +0000
(11:39 +0100)
Use regmap_noinc_read() instead of reading the data from the DDC FIFO one
byte at a time.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20221214125821.12489-4-paul@crapouillou.net
drivers/gpu/drm/bridge/ite-it66121.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/ite-it66121.c
b/drivers/gpu/drm/bridge/ite-it66121.c
index a698eec8f250470e9208fc6d545cf3862505102a..12222840df30dc378db3d1290560d7550f81caf4 100644
(file)
--- a/
drivers/gpu/drm/bridge/ite-it66121.c
+++ b/
drivers/gpu/drm/bridge/ite-it66121.c
@@
-589,13
+589,12
@@
static int it66121_get_edid_block(void *context, u8 *buf,
if (ret)
return ret;
- do {
- ret = regmap_read(ctx->regmap, IT66121_DDC_RD_FIFO_REG, &val);
- if (ret)
- return ret;
- *(buf++) = val;
- cnt--;
- } while (cnt > 0);
+ ret = regmap_noinc_read(ctx->regmap, IT66121_DDC_RD_FIFO_REG,
+ buf, cnt);
+ if (ret)
+ return ret;
+
+ buf += cnt;
}
return 0;