From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62A43C433EF for ; Fri, 6 May 2022 17:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iNaQoG3smKHiWAj4btB3+WNuDfXMusWlK+4y4Y+YqLc=; b=tVwhSFSfVyqA53 5JGLMZvJGLzEak56adTVcuntzTeKfvKwFYHeR4ftfX52/6BjZ8LetJq37R0Vh9XORdTbwchANhAvu 2ICZhqWDWn6N+wC18BV+ntCYyJnxOgKzTWKN526XTjyigXfprfohy0Y7kTldPUHw0CbxRly77Bf4Z eFMFbM6Rb4N/LlbrQPTlxJV5LcvtVLTuxHfHh3xQVu/AO5nhw8jP8RPpR9m4Du5oRGrr/3z9HNEIT ABbJM7flhT+HsZ4VDO8VhsnJhTH2YaJnYWhdcQd7jRi8qTVmBFpqSUEPpCONOxGPxBb9Iaxn2w6bc aEXcLqbAbu369yigOvcA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nn1f9-004V2n-AN; Fri, 06 May 2022 17:22:43 +0000 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nn1ex-004UyR-EZ for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2022 17:22:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651857751; x=1683393751; h=date:from:to:cc:subject:message-id:mime-version; bh=N9V1G9NEHsGL1sVtfpYg7gRxckqR+b/PNlqwMu6czdc=; b=fPRovsC2Xk70gbK79kDiY0QwNs4HWycpHXRO2pUNRA9Eed3MAulXoR8K TijT+vX+7tRJf9jDiTzYTzw3ZJQ8ikJuedMEUFCxTpcuJWihwbk1U5ox7 SJK6gvHGGoWwBgU4Xh0prrU3LkU1WCPndVQs3Vh8wPn6FAN2J3FvY0j7Y LcuLNIEhqTlfPkHnFoDWVcl5C5b6nRZ5hX+bCuGT/3kSGOvCYja0+2KL1 kFMKW6cl3Cq4Sk+/oESMBFuUw5Vsrvvd+ccY53j5da4L4ZZTIPoG8aMUL +k2q41BBZgbpl8ATS9LL6iC7tuNT37Dl0S+RtaDLAcaLCuyRaf3jhCb0R Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10339"; a="256011779" X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="256011779" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 10:22:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,205,1647327600"; d="scan'208";a="549950172" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 06 May 2022 10:22:23 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nn1eo-000Dhq-No; Fri, 06 May 2022 17:22:22 +0000 Date: Sat, 7 May 2022 01:21:40 +0800 From: kernel test robot To: Radhey Shyam Pandey Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek , Davor Joja Subject: [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1129] drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202205070142.LJ22sZm3-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220506_102231_649839_CBD3ADDF X-CRM114-Status: GOOD ( 10.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 3076249fc30bf463f8390f89009de928ad3e95ff commit: 59e26517c7b77c4c82aad32cfac74ae39c32b76b [622/1129] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated) config: sparc64-randconfig-s031-20220506 (https://download.01.org/0day-ci/archive/20220507/202205070142.LJ22sZm3-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/Xilinx/linux-xlnx/commit/59e26517c7b77c4c82aad32cfac74ae39c32b76b git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS git checkout 59e26517c7b77c4c82aad32cfac74ae39c32b76b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/media/i2c/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2100:65: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2100:65: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2100:65: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2104:62: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2104:62: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2104:62: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2111:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2111:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2111:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2115:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2115:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2115:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2119:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2119:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2119:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2123:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2123:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2123:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2127:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2127:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2127:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2131:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2131:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2131:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2135:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2135:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2135:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2145:42: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2145:42: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2145:42: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2151:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2151:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2151:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2155:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2155:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2155:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2159:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2159:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2159:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2163:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2163:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2163:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2168:63: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2168:63: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2168:63: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2175:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2175:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2175:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2180:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2180:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2180:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2185:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2185:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2185:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2190:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2190:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2190:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2195:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2195:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2195:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2200:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2200:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2200:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2205:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2205:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2205:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2210:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2210:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2210:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2215:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2215:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2215:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2220:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2220:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2220:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2225:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2225:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2225:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2230:72: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop @@ drivers/media/i2c/adv7511-v4l2.c:2230:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2230:72: sparse: got unsigned int const [usertype] *[assigned] prop vim +2096 drivers/media/i2c/adv7511-v4l2.c 2080 2081 2082 static void adv7511_get_ofdt_config(struct i2c_client *client, 2083 struct adv7511_state *state) 2084 { 2085 struct device_node *dn = client->dev.of_node; 2086 struct device_node *np; 2087 struct adv7511_config *config = &state->cfg; 2088 u32 const *prop; 2089 int size; 2090 bool vin_loaded, vout_loaded; 2091 2092 vin_loaded = vout_loaded = false; 2093 2094 prop = of_get_property(dn, "edid-addr", &size); 2095 if (prop) > 2096 state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop); 2097 2098 prop = of_get_property(dn, "pktmem-addr", &size); 2099 if (prop) 2100 state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop); 2101 2102 prop = of_get_property(dn, "cec-addr", &size); 2103 if (prop) 2104 state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop); 2105 2106 np = of_find_node_by_name(dn, "video-input"); 2107 if (np) { 2108 prop = of_get_property(np, "input-id", &size); 2109 if (prop) 2110 config->in_params.input_id = 2111 (uint8_t)be32_to_cpup(prop); 2112 prop = of_get_property(np, "input-style", &size); 2113 if (prop) 2114 config->in_params.input_style = 2115 (uint8_t)be32_to_cpup(prop); 2116 prop = of_get_property(np, "input-color-depth", &size); 2117 if (prop) 2118 config->in_params.input_color_depth = 2119 (uint8_t)be32_to_cpup(prop); 2120 prop = of_get_property(np, "bit-justification", &size); 2121 if (prop) 2122 config->in_params.bit_justification = 2123 (uint8_t)be32_to_cpup(prop); 2124 prop = of_get_property(np, "hsync-polarity", &size); 2125 if (prop) 2126 config->in_params.hsync_polarity = 2127 (uint8_t)be32_to_cpup(prop); 2128 prop = of_get_property(np, "vsync-polarity", &size); 2129 if (prop) 2130 config->in_params.vsync_polarity = 2131 (uint8_t)be32_to_cpup(prop); 2132 prop = of_get_property(np, "clock-delay", &size); 2133 if (prop) 2134 config->in_params.clock_delay = 2135 (uint8_t)be32_to_cpup(prop); 2136 vin_loaded = true; 2137 } else { 2138 pr_info("No video input configuration, using device default\n"); 2139 } 2140 2141 np = of_find_node_by_name(dn, "video-output"); 2142 if (np) { 2143 prop = of_get_property(np, "hdmi-mode", &size); 2144 if (prop) { 2145 if (be32_to_cpup(prop) == 1) 2146 config->out_params.hdmi_mode = true; 2147 } 2148 prop = of_get_property(np, "output-format", &size); 2149 if (prop) 2150 config->out_params.output_format = 2151 (uint8_t)be32_to_cpup(prop); 2152 prop = of_get_property(np, "output-color-space", &size); 2153 if (prop) 2154 config->out_params.output_color_space = 2155 (uint8_t)be32_to_cpup(prop); 2156 prop = of_get_property(np, "up-conversion", &size); 2157 if (prop) 2158 config->out_params.up_conversion = 2159 (uint8_t)be32_to_cpup(prop); 2160 prop = of_get_property(np, "csc-enable", &size); 2161 if (prop) 2162 config->out_params.csc_enable = 2163 (uint8_t)be32_to_cpup(prop); 2164 if (config->out_params.csc_enable) { 2165 prop = of_get_property(np, "csc-scaling-factor", &size); 2166 if (prop) { 2167 config->out_params.csc_scaling_factor = 2168 (uint8_t)be32_to_cpup(prop); 2169 } 2170 np = of_find_node_by_name(dn, "csc-coefficients"); 2171 if (np) { 2172 prop = of_get_property(np, "a1", &size); 2173 if (prop) { 2174 config->out_params.csc_coeff.a1 = 2175 (uint16_t)be32_to_cpup(prop); 2176 } 2177 prop = of_get_property(np, "a2", &size); 2178 if (prop) { 2179 config->out_params.csc_coeff.a2 = 2180 (uint16_t)be32_to_cpup(prop); 2181 } 2182 prop = of_get_property(np, "a3", &size); 2183 if (prop) { 2184 config->out_params.csc_coeff.a3 = 2185 (uint16_t)be32_to_cpup(prop); 2186 } 2187 prop = of_get_property(np, "a4", &size); 2188 if (prop) { 2189 config->out_params.csc_coeff.a4 = 2190 (uint16_t)be32_to_cpup(prop); 2191 } 2192 prop = of_get_property(np, "b1", &size); 2193 if (prop) { 2194 config->out_params.csc_coeff.b1 = 2195 (uint16_t)be32_to_cpup(prop); 2196 } 2197 prop = of_get_property(np, "b2", &size); 2198 if (prop) { 2199 config->out_params.csc_coeff.b2 = 2200 (uint16_t)be32_to_cpup(prop); 2201 } 2202 prop = of_get_property(np, "b3", &size); 2203 if (prop) { 2204 config->out_params.csc_coeff.b3 = 2205 (uint16_t)be32_to_cpup(prop); 2206 } 2207 prop = of_get_property(np, "b4", &size); 2208 if (prop) { 2209 config->out_params.csc_coeff.b4 = 2210 (uint16_t)be32_to_cpup(prop); 2211 } 2212 prop = of_get_property(np, "c1", &size); 2213 if (prop) { 2214 config->out_params.csc_coeff.c1 = 2215 (uint16_t)be32_to_cpup(prop); 2216 } 2217 prop = of_get_property(np, "c2", &size); 2218 if (prop) { 2219 config->out_params.csc_coeff.c2 = 2220 (uint16_t)be32_to_cpup(prop); 2221 } 2222 prop = of_get_property(np, "c3", &size); 2223 if (prop) { 2224 config->out_params.csc_coeff.c3 = 2225 (uint16_t)be32_to_cpup(prop); 2226 } 2227 prop = of_get_property(np, "c4", &size); 2228 if (prop) { 2229 config->out_params.csc_coeff.c4 = 2230 (uint16_t)be32_to_cpup(prop); 2231 } 2232 } else { 2233 pr_info("No CSC coefficients, using default\n"); 2234 } 2235 } 2236 vout_loaded = true; 2237 } else { 2238 pr_info("No video output configuration, using device default\n"); 2239 } 2240 2241 if (vin_loaded && vout_loaded) 2242 config->loaded = true; 2243 } 2244 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel