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 8B383C433EF for ; Sat, 15 Jan 2022 05:53:13 +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=EKaJX0ElfYi2C/rUo3Tu0o57ccRXf4FdluXSXsMi71w=; b=qZGej2/JAdXlCT KydPYWeXwmMbFfdgymaZNVi0+e1S7wiYNI0pjzuVyObZxgYg1ZWXf0ug2BqmbZiAetecPxReGJkt3 qZwhzzAQs2C5cFxrQrBblIv7/cVCQOzmu7InkosMtE/H9X0jNeYhQDl3EdTqz/dtQRmbJ68s1VYpO Ux1USTd1Sq52S/G0jFGG0OhnibTxkFX8F6JlMjJsEsppEbx5+G2gk5RQeaSs/EIaej1k0pSyRq4Ol bsXQvTmO58XRoKBAaulCJSIE9jKWEpDQDHNPa/Bev37+CFQC9ssB3x89uySsO8x9gnUgPsSlilF9N c4CzitR3q4xfQettQulQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8bxp-00AheB-0N; Sat, 15 Jan 2022 05:50:57 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8bxh-00Ahc1-Ig for linux-arm-kernel@lists.infradead.org; Sat, 15 Jan 2022 05:50:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642225849; x=1673761849; h=date:from:to:cc:subject:message-id:mime-version; bh=8nqIE7eou0iZgMgxvg6NlJNkbz24hPIePLyYFM7XcsQ=; b=QXv3HzmfwqSjq3JtbUMdVe1CJnUukB+dvWVkcCrGN46NyXxG5AbJmfmX uX29LuLJ7Upkn5+VL6qW5oqk1pownbnUpmfkYdxjPT25JAEL3io7RD0mz vj9cF6Mp/xFK4IsQ1nDOEqz+oJLZXPSa2ZA9/UWcloJDNbpFW3JQs0uQn PsMYks2NSQbqz4SvZQ2yL8VNW5ZEs/5Q0cJetMN+tCECjG1AE+JJpebeD k534oWEHpCldEiAYubc1hzA/YoITkOCPZOisCmWMIWfCVK9q0h6NadT2k IX4VZcf5r9MJJJgaXN05rGdtKHeVQOwgTCjfdw+3hThq2R6P5HyzDwTud w==; X-IronPort-AV: E=McAfee;i="6200,9189,10227"; a="244176149" X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="244176149" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 21:50:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="559720921" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 14 Jan 2022 21:50:45 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n8bxc-0009Qv-W2; Sat, 15 Jan 2022 05:50:44 +0000 Date: Sat, 15 Jan 2022 13:49:47 +0800 From: kernel test robot To: Quanyang Wang Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Michal Simek Subject: [xilinx-xlnx:master 10/326] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) Message-ID: <202201151359.AyphE74l-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220114_215049_749334_3FDFD391 X-CRM114-Status: GOOD ( 10.70 ) 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 Hi Quanyang, First bad commit (maybe != root cause): tree: https://github.com/Xilinx/linux-xlnx master head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30 commit: bd76b5963aee700d5e6ff0cd29834bfdaf05532e [10/326] media: adv7511-v4l2: fix compile error config: alpha-randconfig-s031-20220113 (https://download.01.org/0day-ci/archive/20220115/202201151359.AyphE74l-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.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/bd76b5963aee700d5e6ff0cd29834bfdaf05532e git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx master git checkout bd76b5963aee700d5e6ff0cd29834bfdaf05532e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha 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:2102: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:2102:63: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2106: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:2106:65: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2110: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:2110:62: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2117: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:2117:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2121: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:2121:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2125: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:2125:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2129: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:2129:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2133: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:2133:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2137: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:2137:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2141: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:2141:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2151: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:2151:42: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2157: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:2157:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2161: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:2161:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2165: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:2165:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2169: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:2169:55: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2174: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:2174:63: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2181: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:2181:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2186: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:2186:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2191: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:2191:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2196: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:2196:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2201: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:2201:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2206: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:2206:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2211: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:2211:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2216: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:2216:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2221: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:2221:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2226: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:2226:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2231: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:2231:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: got unsigned int const [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2236: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:2236:72: sparse: expected restricted __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: got unsigned int const [usertype] *[assigned] prop vim +2102 drivers/media/i2c/adv7511-v4l2.c 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08-23 2086 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2087 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2088 static void adv7511_get_ofdt_config(struct i2c_client *client, c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2089 struct adv7511_state *state) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2090 { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2091 struct device_node *dn = client->dev.of_node; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2092 struct device_node *np; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2093 struct adv7511_config *config = &state->cfg; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2094 u32 const *prop; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2095 int size; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2096 bool vin_loaded, vout_loaded; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2097 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2098 vin_loaded = vout_loaded = false; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2099 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2100 prop = of_get_property(dn, "edid-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2101 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 @2102 state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2103 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2104 prop = of_get_property(dn, "pktmem-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2105 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2106 state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2107 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2108 prop = of_get_property(dn, "cec-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2109 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2110 state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2111 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2112 np = of_find_node_by_name(dn, "video-input"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2113 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2114 prop = of_get_property(np, "input-id", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2115 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2116 config->in_params.input_id = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2117 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2118 prop = of_get_property(np, "input-style", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2119 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2120 config->in_params.input_style = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2121 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2122 prop = of_get_property(np, "input-color-depth", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2123 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2124 config->in_params.input_color_depth = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2125 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2126 prop = of_get_property(np, "bit-justification", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2127 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2128 config->in_params.bit_justification = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2129 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2130 prop = of_get_property(np, "hsync-polarity", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2131 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2132 config->in_params.hsync_polarity = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2133 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2134 prop = of_get_property(np, "vsync-polarity", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2135 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2136 config->in_params.vsync_polarity = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2137 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2138 prop = of_get_property(np, "clock-delay", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2139 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2140 config->in_params.clock_delay = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2141 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2142 vin_loaded = true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2143 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2144 pr_info("No video input configuration, using device default\n"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2145 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2146 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2147 np = of_find_node_by_name(dn, "video-output"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2148 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2149 prop = of_get_property(np, "hdmi-mode", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2150 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2151 if (be32_to_cpup(prop) == 1) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2152 config->out_params.hdmi_mode = true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2153 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2154 prop = of_get_property(np, "output-format", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2155 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2156 config->out_params.output_format = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2157 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2158 prop = of_get_property(np, "output-color-space", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2159 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2160 config->out_params.output_color_space = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2161 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2162 prop = of_get_property(np, "up-conversion", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2163 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2164 config->out_params.up_conversion = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2165 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2166 prop = of_get_property(np, "csc-enable", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2167 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2168 config->out_params.csc_enable = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2169 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2170 if (config->out_params.csc_enable) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2171 prop = of_get_property(np, "csc-scaling-factor", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2172 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2173 config->out_params.csc_scaling_factor = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2174 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2175 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2176 np = of_find_node_by_name(dn, "csc-coefficients"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2177 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2178 prop = of_get_property(np, "a1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2179 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2180 config->out_params.csc_coeff.a1 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2181 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2182 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2183 prop = of_get_property(np, "a2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2184 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2185 config->out_params.csc_coeff.a2 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2186 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2187 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2188 prop = of_get_property(np, "a3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2189 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2190 config->out_params.csc_coeff.a3 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2191 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2192 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2193 prop = of_get_property(np, "a4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2194 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2195 config->out_params.csc_coeff.a4 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2196 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2197 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2198 prop = of_get_property(np, "b1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2199 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2200 config->out_params.csc_coeff.b1 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2201 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2202 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2203 prop = of_get_property(np, "b2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2204 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2205 config->out_params.csc_coeff.b2 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2206 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2207 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2208 prop = of_get_property(np, "b3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2209 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2210 config->out_params.csc_coeff.b3 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2211 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2212 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2213 prop = of_get_property(np, "b4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2214 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2215 config->out_params.csc_coeff.b4 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2216 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2217 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2218 prop = of_get_property(np, "c1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2219 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2220 config->out_params.csc_coeff.c1 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2221 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2222 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2223 prop = of_get_property(np, "c2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2224 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2225 config->out_params.csc_coeff.c2 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2226 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2227 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2228 prop = of_get_property(np, "c3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2229 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2230 config->out_params.csc_coeff.c3 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2231 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2232 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2233 prop = of_get_property(np, "c4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2234 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2235 config->out_params.csc_coeff.c4 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2236 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2237 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2238 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2239 pr_info("No CSC coefficients, using default\n"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2240 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2241 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2242 vout_loaded = true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2243 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2244 pr_info("No video output configuration, using device default\n"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2245 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2246 c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2247 if (vin_loaded && vout_loaded) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2248 config->loaded = true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2249 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01-15 2250 :::::: The code at line 2102 was first introduced by commit :::::: c2644339194bd7be4ce6023d72f5e7a03f55ef6b drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated) :::::: TO: Radhey Shyam Pandey :::::: CC: Michal Simek --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1864468672818637487==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [xilinx-xlnx:master 10/326] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) Date: Sat, 15 Jan 2022 13:49:47 +0800 Message-ID: <202201151359.AyphE74l-lkp@intel.com> List-Id: --===============1864468672818637487== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Quanyang, First bad commit (maybe !=3D root cause): tree: https://github.com/Xilinx/linux-xlnx master head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30 commit: bd76b5963aee700d5e6ff0cd29834bfdaf05532e [10/326] media: adv7511-v4= l2: fix compile error config: alpha-randconfig-s031-20220113 (https://download.01.org/0day-ci/arc= hive/20220115/202201151359.AyphE74l-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.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/bd76b5963aee700d5e6ff= 0cd29834bfdaf05532e git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx master git checkout bd76b5963aee700d5e6ff0cd29834bfdaf05532e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Da= lpha SHELL=3D/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:2102:63: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: sparse: incorrect type= in argument 1 (different base types) @@ expected restricted __be32 con= st [usertype] *p @@ got unsigned int const [usertype] *[assigned] prop = @@ drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: expected restricte= d __be32 const [usertype] *p drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: got unsigned int c= onst [usertype] *[assigned] prop vim +2102 drivers/media/i2c/adv7511-v4l2.c 5a544cce2177fe drivers/media/i2c/adv7511.c Hans Verkuil 2013-08= -23 2086 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2087 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2088 static void adv7511_get_ofdt_config(struct i2c_client *client, c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2089 struct adv7511_state *state) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2090 { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2091 struct device_node *dn =3D client->dev.of_node; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2092 struct device_node *np; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2093 struct adv7511_config *config =3D &state->cfg; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2094 u32 const *prop; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2095 int size; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2096 bool vin_loaded, vout_loaded; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2097 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2098 vin_loaded =3D vout_loaded =3D false; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2099 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2100 prop =3D of_get_property(dn, "edid-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2101 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 @2102 state->pdata.i2c_edid =3D (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2103 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2104 prop =3D of_get_property(dn, "pktmem-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2105 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2106 state->pdata.i2c_pktmem =3D (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2107 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2108 prop =3D of_get_property(dn, "cec-addr", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2109 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2110 state->pdata.i2c_cec =3D (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2111 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2112 np =3D of_find_node_by_name(dn, "video-input"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2113 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2114 prop =3D of_get_property(np, "input-id", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2115 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2116 config->in_params.input_id =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2117 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2118 prop =3D of_get_property(np, "input-style", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2119 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2120 config->in_params.input_style =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2121 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2122 prop =3D of_get_property(np, "input-color-depth", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2123 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2124 config->in_params.input_color_depth =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2125 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2126 prop =3D of_get_property(np, "bit-justification", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2127 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2128 config->in_params.bit_justification =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2129 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2130 prop =3D of_get_property(np, "hsync-polarity", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2131 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2132 config->in_params.hsync_polarity =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2133 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2134 prop =3D of_get_property(np, "vsync-polarity", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2135 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2136 config->in_params.vsync_polarity =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2137 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2138 prop =3D of_get_property(np, "clock-delay", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2139 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2140 config->in_params.clock_delay =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2141 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2142 vin_loaded =3D true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2143 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2144 pr_info("No video input configuration, using device default\n"= ); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2145 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2146 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2147 np =3D of_find_node_by_name(dn, "video-output"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2148 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2149 prop =3D of_get_property(np, "hdmi-mode", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2150 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2151 if (be32_to_cpup(prop) =3D=3D 1) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2152 config->out_params.hdmi_mode =3D true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2153 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2154 prop =3D of_get_property(np, "output-format", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2155 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2156 config->out_params.output_format =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2157 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2158 prop =3D of_get_property(np, "output-color-space", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2159 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2160 config->out_params.output_color_space =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2161 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2162 prop =3D of_get_property(np, "up-conversion", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2163 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2164 config->out_params.up_conversion =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2165 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2166 prop =3D of_get_property(np, "csc-enable", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2167 if (prop) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2168 config->out_params.csc_enable =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2169 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2170 if (config->out_params.csc_enable) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2171 prop =3D of_get_property(np, "csc-scaling-factor", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2172 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2173 config->out_params.csc_scaling_factor =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2174 (uint8_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2175 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2176 np =3D of_find_node_by_name(dn, "csc-coefficients"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2177 if (np) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2178 prop =3D of_get_property(np, "a1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2179 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2180 config->out_params.csc_coeff.a1 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2181 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2182 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2183 prop =3D of_get_property(np, "a2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2184 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2185 config->out_params.csc_coeff.a2 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2186 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2187 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2188 prop =3D of_get_property(np, "a3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2189 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2190 config->out_params.csc_coeff.a3 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2191 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2192 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2193 prop =3D of_get_property(np, "a4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2194 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2195 config->out_params.csc_coeff.a4 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2196 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2197 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2198 prop =3D of_get_property(np, "b1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2199 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2200 config->out_params.csc_coeff.b1 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2201 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2202 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2203 prop =3D of_get_property(np, "b2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2204 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2205 config->out_params.csc_coeff.b2 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2206 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2207 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2208 prop =3D of_get_property(np, "b3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2209 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2210 config->out_params.csc_coeff.b3 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2211 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2212 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2213 prop =3D of_get_property(np, "b4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2214 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2215 config->out_params.csc_coeff.b4 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2216 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2217 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2218 prop =3D of_get_property(np, "c1", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2219 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2220 config->out_params.csc_coeff.c1 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2221 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2222 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2223 prop =3D of_get_property(np, "c2", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2224 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2225 config->out_params.csc_coeff.c2 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2226 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2227 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2228 prop =3D of_get_property(np, "c3", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2229 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2230 config->out_params.csc_coeff.c3 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2231 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2232 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2233 prop =3D of_get_property(np, "c4", &size); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2234 if (prop) { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2235 config->out_params.csc_coeff.c4 =3D c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2236 (uint16_t)be32_to_cpup(prop); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2237 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2238 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2239 pr_info("No CSC coefficients, using default\n"); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2240 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2241 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2242 vout_loaded =3D true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2243 } else { c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2244 pr_info("No video output configuration, using device default\n= "); c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2245 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2246 = c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2247 if (vin_loaded && vout_loaded) c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2248 config->loaded =3D true; c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2249 } c2644339194bd7 drivers/media/i2c/adv7511-v4l2.c Radhey Shyam Pandey 2014-01= -15 2250 = :::::: The code at line 2102 was first introduced by commit :::::: c2644339194bd7be4ce6023d72f5e7a03f55ef6b drivers: media: Customized = adv7511 for Xylon LogiCVC (deprecated) :::::: TO: Radhey Shyam Pandey :::::: CC: Michal Simek --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1864468672818637487==--