On Fri, Apr 15, 2011 at 8:18 PM, Robert Morell <[email protected]> wrote:
snip
> + /*
> + * The line buffer for error-diffusion dither is limited to 640 pixels
> + * per line, so we can't use it if the active region is larger than
> 640
> + * pixels. Be nice and fall back to ordered dithering, but warn so
> the
> + * platform data can be corrected.
> + */
> + if (WARN_ON(dc->out->dither == TEGRA_DC_ERRDIFF_DITHER &&
> + dc->mode.h_active > 640)) {
> + dc->out->dither = TEGRA_DC_ORDERED_DITHER;
> + }
snip
> + case TEGRA_DC_ERRDIFF_DITHER:
> + BUG_ON(dc->mode.h_active > 640);
> + color_control |= DITHER_CONTROL_ERRDIFF;
> + break;
> + }
Since you explicitly make this condition impossible above, the BUG_ON
is not needed.
-Erik
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html