]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: dsi:remove unused chip_id & chip_rev
authorBibek Basu <bbasu@nvidia.com>
Tue, 7 Jan 2014 05:05:16 +0000 (10:35 +0530)
committerTom Cherry <tcherry@nvidia.com>
Thu, 23 Jan 2014 00:02:58 +0000 (16:02 -0800)
chip_id and chip_rev are of no practical use other
than throwing warning if not populated.Thus removing.

Bug 1434476

Change-Id: I75710e51696b9838249fc176a41b3af5f05da932
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/352538
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Animesh Kishore <ankishore@nvidia.com>
Reviewed-by: Hayden Du <haydend@nvidia.com>
arch/arm/mach-tegra/include/mach/dc.h
arch/arm/mach-tegra/panel-a-1080p-14-0.c
drivers/video/tegra/dc/dsi.c

index 3a73f1e99bfb9e55f08c3725204a979026726235..e3750098f475fa9377e4c95099f6e60c9c216085 100644 (file)
@@ -280,8 +280,6 @@ struct tegra_dsi_out {
        u16             dsi_panel_rst_gpio;
        u16             dsi_panel_bl_en_gpio;
        u16             dsi_panel_bl_pwm_gpio;
-       u16             chip_id;
-       u8              chip_rev;
        u8              controller_vs;
 
        bool            panel_has_frame_buffer; /* required*/
index 32a5c64c6de6872cce28d17b1e002862df136fde..0ddeeb9322e74a8dc675527cac3a8ad6a624908c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/panel-a-1080p-14-0.c
  *
- * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2013-2014, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -158,8 +158,6 @@ static struct tegra_dsi_out dsi_a_1080p_14_0_pdata = {
                .t_datzero_ns = 170,
                .t_hsprepare_ns = 57,
        },
-       .chip_id = 0x162,
-       .chip_rev = 1,
 };
 
 static int laguna_dsi_regulator_get(struct device *dev)
index 9cc2c150bab633158a626203b06e6a2d02a8c34b..fe602d2b253739334f6515ead31562c6e60081ff 100644 (file)
@@ -4118,10 +4118,6 @@ static int tegra_dc_dsi_cp_info(struct tegra_dc_dsi_data *dsi,
        if (!dsi->info.lp_cmd_mode_freq_khz)
                dsi->info.lp_cmd_mode_freq_khz = DEFAULT_LP_CMD_MODE_CLK_KHZ;
 
-       if (!dsi->info.chip_id || !dsi->info.chip_rev)
-               dev_warn(&dsi->dc->ndev->dev,
-                       "DSI: Failed to get chip info\n");
-
        if (!dsi->info.lp_read_cmd_mode_freq_khz)
                dsi->info.lp_read_cmd_mode_freq_khz =
                        dsi->info.lp_cmd_mode_freq_khz;