[PATCH v2 2/6] drm/udl: fix Bpp calculation in dumb_create()

2014-02-05 Thread David Herrmann
ping.. On Thu, Jan 23, 2014 at 1:50 PM, David Herrmann wrote: > Probably a typo.. we obviously need "(bpp + 7) / 8" instead of > "(bpp + 1) / 8". Unlikely to be hit in any sane code, but lets be safe. > Use DIV_ROUND_UP() to avoid the problem entirely and make the core more > readable. > >

[PATCH v2 2/6] drm/udl: fix Bpp calculation in dumb_create()

2014-01-23 Thread David Herrmann
Probably a typo.. we obviously need "(bpp + 7) / 8" instead of "(bpp + 1) / 8". Unlikely to be hit in any sane code, but lets be safe. Use DIV_ROUND_UP() to avoid the problem entirely and make the core more readable. Reviewed-by: Daniel Vetter Signed-off-by: David Herrmann ---