diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-05-27 15:22:16 +0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-07-01 13:06:49 +0400 |
commit | 332e9d70518b55a70068739bc7ea134e1d8a269b (patch) | |
tree | 5696ca3ae882643084afb9575f7c0e66b56f118a /drivers/video/omap2/dss/overlay.c | |
parent | 525dae613638320c880afcc0d8d6dd27141fc4e4 (diff) | |
download | linux-332e9d70518b55a70068739bc7ea134e1d8a269b.tar.xz |
OMAP: DSS2: Add new FEAT definitions for features missing from OMAP2
OMAP2 doesn't have CPR, PRELOAD nor FIR_COEF_V registers. Add new
feature definitions for those, and check the feature before accessing
those registers.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/overlay.c')
-rw-r--r-- | drivers/video/omap2/dss/overlay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c index 0f08025b1f0e..cfbfc57e9582 100644 --- a/drivers/video/omap2/dss/overlay.c +++ b/drivers/video/omap2/dss/overlay.c @@ -238,6 +238,9 @@ static ssize_t overlay_global_alpha_store(struct omap_overlay *ovl, u8 alpha; struct omap_overlay_info info; + if (!dss_has_feature(FEAT_GLOBAL_ALPHA)) + return -ENODEV; + r = kstrtou8(buf, 0, &alpha); if (r) return r; |