ARM: tegra: cardhu: fix backlight table warning
Xin Xie [Sat, 6 Aug 2011 00:55:16 +0000 (17:55 -0700)]
Original-Change-Id: I3ad643db67c62c57320e94f193317078ad919b9c
Reviewed-on: http://git-master/r/45691
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>

Rebase-Id: R452d613de364d2bdf41af1e048f4586e202fa028

arch/arm/mach-tegra/board-cardhu-panel.c

index 6107f3f..4e34118 100644 (file)
@@ -114,7 +114,7 @@ static int cardhu_backlight_init(struct device *dev) {
 
        bl_output = cardhu_bl_output_measured;
 
-       if (WARN_ON(ARRAY_SIZE(cardhu_bl_output_measured) == 256))
+       if (WARN_ON(ARRAY_SIZE(cardhu_bl_output_measured) != 256))
                pr_err("bl_output array does not have 256 elements\n");
 
 #ifndef CONFIG_TEGRA_CARDHU_DSI