aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-03-02 22:12:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 17:33:03 +0100
commit60da70204ead415ce43f6865ae237cb073f3a5a0 (patch)
tree38d903e1e6bb7ca7db6c716c1d5ac61d093491a3 /drivers/staging/fbtft/fbtft.h
parentstaging: fbtft: fb_sh1106: use own implementation of write_register (diff)
downloadlinux-dev-60da70204ead415ce43f6865ae237cb073f3a5a0.tar.xz
linux-dev-60da70204ead415ce43f6865ae237cb073f3a5a0.zip
staging: fbtft: add helper fbtft_write_buf_dc
Factor out setting DC GPIO and writing buffer content to helper fbtft_write_buf_dc. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft.h')
-rw-r--r--drivers/staging/fbtft/fbtft.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h
index 119c3a72be1b..488ab788138e 100644
--- a/drivers/staging/fbtft/fbtft.h
+++ b/drivers/staging/fbtft/fbtft.h
@@ -248,6 +248,7 @@ struct fbtft_par {
par->fbtftops.write_register(par, NUMARGS(__VA_ARGS__), __VA_ARGS__)
/* fbtft-core.c */
+int fbtft_write_buf_dc(struct fbtft_par *par, void *buf, size_t len, int dc);
void fbtft_dbg_hex(const struct device *dev, int groupsize,
void *buf, size_t len, const char *fmt, ...);
struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,