Example #1
0
static ssize_t ili9341_write(struct fb_info *p, const char __user *buf, 
				size_t count, loff_t *ppos) 
{
	ssize_t res;
	res = fb_sys_write(p, buf, count, ppos);
	ili9341_touch(p, 0, 0, p->var.xres, p->var.yres);
	return res;
}
Example #2
0
static ssize_t ls027b7dh01_write(struct fb_info *p, const char __user *buf, 
				    size_t count, loff_t *ppos)
{
	int retval;
	int begin = *ppos;
	int end = *ppos + count;

	retval = fb_sys_write(p, buf, count, ppos);
	ls027b7dh01_invalidate(p, 
		begin % LS027B7DH01_LINE_LEN, begin / LS027B7DH01_LINE_LEN, 
		end % LS027B7DH01_LINE_LEN, end / LS027B7DH01_LINE_LEN);
	return retval;
}
Example #3
0
static ssize_t st7585_write(struct fb_info *info, const char __user *buf, size_t count, loff_t *ppos)
{
	ssize_t ret = fb_sys_write(info, buf, count, ppos);
	st7585fb_schedule_refresh(info, NULL);
	return ret;
}