Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp725648lqh; Fri, 31 May 2024 14:53:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZV9+l32xMGqzgYnzSlRaeJ4OrUabuAM0Yyb6OPb/dqVczoemgb2m7RG3b+awhEm1bmhptSWh8mLYqixGI9hWn+PRTwbQFCiihPOwcfw== X-Google-Smtp-Source: AGHT+IE01gbiMRl8oHE3/lfHu5XhmgoUm/NWFk2K6v7GKgi2VlM1AzE9Imxo58qz0LGyx3wUKER9 X-Received: by 2002:a05:6a00:130c:b0:6ed:6b11:4076 with SMTP id d2e1a72fcca58-702477e4893mr2380677b3a.12.1717192412150; Fri, 31 May 2024 14:53:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717192412; cv=pass; d=google.com; s=arc-20160816; b=zB5IXrcNDwGUWUfKlNbtLFE1g+/7rf3a2O/rg+L3UoDkHxMl8V7gL3BjzHlwqqeeCC 2Y1E65LBIkJvJVbjKOxoHP+n5+tWPM53ip4yRnKlK5ohWx81q2MeXGo7F8p0pwXsrhcZ uDfOMKqlKeEgFxyiK3lOz1v9BS3UJEw0oOwPK3KUFGisIIbSGAttg+V4ZzmkJsyCM6eV sG7XrLLpE/j4447fRLvpUsKwl5Pq4IRJA7kdvzQ788IrHh45hnPcWJfZliyMTzNsP45a 9McEMBO31X4fRDL6Jd2kC4533edeUMtgjcBXGsXzL/cNyFjSfUwfG8g/1gjDA4KQs+r2 lCwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vB0d1WYoJK1/9d4R2DKnuZs5zbRe5Dnl3Bq5UWPYQ5s=; fh=zf71ZSwh69HPTvcPv0R9k/+bfGAGTUj+09WB0xQRvlU=; b=k+VZ8Ph3MSHEB5n6qqGxv4aO/tEqUxqeJONZehMY8IKhQlHKPt8YeF9978qnWZ8/xh gLH8mlZt5dh6HW54uaMSk7qyh3TXp1ntQ0lrTlew49Jb2RC6Qv9T+8IJn7DtdqRgWmnp hJ3+MXZBGczzX+AAxsW1D4nIbSzBWQ6SdeFUP6qWXcjisZD9hd3WDUSXNHAHKLfShXlJ pjppQHFlkKUj0jQa8WivhQIjPVXclfQregzA3xqaBv9VHxacgxFMUS5ORaFm82Wv+v3z OUBTXI9cKpYUrmBW4SiBn+4Pdtv+hpeoMiIeItZ2lQxyrA+W4nYGkvj8AK8E/u6jNxJV n8Fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eIVSwn/3"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242d5ebc6si2250289b3a.369.2024.05.31.14.53.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:53:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eIVSwn/3"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-197540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ABD69288AA5 for ; Fri, 31 May 2024 21:53:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31FF080032; Fri, 31 May 2024 21:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eIVSwn/3" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBE2A78C8F; Fri, 31 May 2024 21:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717192404; cv=none; b=cz6GiXg4u5kSiatka3Awv+Va0MuLOjG07aqS3yO6RQ+/GQwjXls3/wSWKWyWTBcUILXY8O/rZRnyZLQ35Z/9K1HSOAS6bklwYrc+qjBuSaVYyl0zQ7C0qGDo2zdD2O1bEo1R569R1ovd1Pz0MrlEdGZCQD8omiLwbXoRNABGXfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717192404; c=relaxed/simple; bh=CPHoggbhzNf5ibw9VbBbdMg/tioqAhC9EB19f97+qc8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s2mofgPbuPFYfp1FKhEkquvD+vqfBpFl7HH59VcvRDfdAABDbCqHUEFucUTE2+lg3aLcPteG/USAIM/UL5My2MnbpLYuB8v8pXFATCP50haJ/bMND0v8d4sBq4KSdDeETENGAroJ6dHka83JO4ZecHjMNMgFJBxQIcpdP2+OK2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eIVSwn/3; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717192402; x=1748728402; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=CPHoggbhzNf5ibw9VbBbdMg/tioqAhC9EB19f97+qc8=; b=eIVSwn/3D7WSa3/Kz2+aim3OUwOHBM+niTUbRImu6v/EhG6F/w2QkPP7 +4AD/G3yzJ4hCrgH/VyZ/fIO6wavwRgQbHtvvubtsBdlHrkyXxT0YbAp6 lJFN1YcC0bF5Px3I0LUQTDGWegML+fsywSKB1P9q6W7oQcppJFWZg1b/j +QfJ1bz8LKaniQVP4Fe9V44qavE8MP2A2YmGiZTFUgDKJBY1iob/SWNrL fFqkV9+h2gpz31F9b04zV9xk2/jhFEnRFTNDyUTqwnQTTRRWQEgHG2M5f QLTIFoh5n3qddTADmpFK5z/HL7KoIV4E/YKHzF3bEz6ohbrxP6EPaRw3Q A==; X-CSE-ConnectionGUID: fx+qy+0jT0WM9B6t1uDt+Q== X-CSE-MsgGUID: ArLIXiSoRBG5+tPhGfL7MQ== X-IronPort-AV: E=McAfee;i="6600,9927,11089"; a="17600234" X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="17600234" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 14:53:21 -0700 X-CSE-ConnectionGUID: c9OWndSkQPeEQpneVeUCbA== X-CSE-MsgGUID: BhUsEDPER0eHdbxJaGJzaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,205,1712646000"; d="scan'208";a="36205908" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa007.fm.intel.com with ESMTP; 31 May 2024 14:53:14 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sDABU-000Hsc-0O; Fri, 31 May 2024 21:53:12 +0000 Date: Sat, 1 Jun 2024 05:52:28 +0800 From: kernel test robot To: Andy Shevchenko , Charles Keepax , Rob Herring , Weidong Wang , Mark Brown , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Kuninori Morimoto , Shenghao Ding , Marco Felsch , Alper Nebi Yasak , Chancel Liu , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Nicolin Chen , Fabio Estevam , Pengutronix Kernel Team , Liam Girdwood , Shengjiu Wang , Sascha Hauer , Xiubo Li , Takashi Iwai , David Rhodes , Kevin Lu , Richard Fitzgerald Subject: Re: [PATCH v2 1/6] ASoC: codecs: Remove unused of_gpio.h Message-ID: <202406010556.2MUAFCcz-lkp@intel.com> References: <20240531153038.1590171-2-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240531153038.1590171-2-andriy.shevchenko@linux.intel.com> Hi Andy, kernel test robot noticed the following build errors: [auto build test ERROR on broonie-sound/for-next] [also build test ERROR on shawnguo/for-next rockchip/for-next linus/master v6.10-rc1 next-20240531] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/ASoC-codecs-Remove-unused-of_gpio-h/20240531-233513 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next patch link: https://lore.kernel.org/r/20240531153038.1590171-2-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v2 1/6] ASoC: codecs: Remove unused of_gpio.h config: i386-buildonly-randconfig-006-20240601 (https://download.01.org/0day-ci/archive/20240601/202406010556.2MUAFCcz-lkp@intel.com/config) compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240601/202406010556.2MUAFCcz-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202406010556.2MUAFCcz-lkp@intel.com/ All errors (new ones prefixed by >>): >> sound/soc/codecs/aw88399.c:1791:3: error: call to undeclared function 'gpiod_set_value_cansleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1791 | gpiod_set_value_cansleep(aw88399->reset_gpio, 1); | ^ >> sound/soc/codecs/aw88399.c:1868:24: error: call to undeclared function 'devm_gpiod_get_optional'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1868 | aw88399->reset_gpio = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_LOW); | ^ sound/soc/codecs/aw88399.c:1868:24: note: did you mean 'devm_regulator_get_optional'? include/linux/regulator/consumer.h:347:1: note: 'devm_regulator_get_optional' declared here 347 | devm_regulator_get_optional(struct device *dev, const char *id) | ^ >> sound/soc/codecs/aw88399.c:1868:68: error: use of undeclared identifier 'GPIOD_OUT_LOW' 1868 | aw88399->reset_gpio = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_LOW); | ^ 3 errors generated. vim +/gpiod_set_value_cansleep +1791 sound/soc/codecs/aw88399.c 8ade6cc7e26175 Weidong Wang 2023-10-25 1787 8ade6cc7e26175 Weidong Wang 2023-10-25 1788 static void aw88399_hw_reset(struct aw88399 *aw88399) 8ade6cc7e26175 Weidong Wang 2023-10-25 1789 { 8ade6cc7e26175 Weidong Wang 2023-10-25 1790 if (aw88399->reset_gpio) { 8ade6cc7e26175 Weidong Wang 2023-10-25 @1791 gpiod_set_value_cansleep(aw88399->reset_gpio, 1); 8ade6cc7e26175 Weidong Wang 2023-10-25 1792 usleep_range(AW88399_1000_US, AW88399_1000_US + 10); 8ade6cc7e26175 Weidong Wang 2023-10-25 1793 gpiod_set_value_cansleep(aw88399->reset_gpio, 0); 8ade6cc7e26175 Weidong Wang 2023-10-25 1794 usleep_range(AW88399_1000_US, AW88399_1000_US + 10); 8ade6cc7e26175 Weidong Wang 2023-10-25 1795 gpiod_set_value_cansleep(aw88399->reset_gpio, 1); 8ade6cc7e26175 Weidong Wang 2023-10-25 1796 usleep_range(AW88399_1000_US, AW88399_1000_US + 10); 8ade6cc7e26175 Weidong Wang 2023-10-25 1797 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1798 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1799 8ade6cc7e26175 Weidong Wang 2023-10-25 1800 static void aw88399_parse_channel_dt(struct aw_device *aw_dev) 8ade6cc7e26175 Weidong Wang 2023-10-25 1801 { 8ade6cc7e26175 Weidong Wang 2023-10-25 1802 struct device_node *np = aw_dev->dev->of_node; 8ade6cc7e26175 Weidong Wang 2023-10-25 1803 u32 channel_value; 8ade6cc7e26175 Weidong Wang 2023-10-25 1804 8ade6cc7e26175 Weidong Wang 2023-10-25 1805 of_property_read_u32(np, "awinic,audio-channel", &channel_value); 8ade6cc7e26175 Weidong Wang 2023-10-25 1806 aw_dev->channel = channel_value; 8ade6cc7e26175 Weidong Wang 2023-10-25 1807 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1808 8ade6cc7e26175 Weidong Wang 2023-10-25 1809 static int aw88399_init(struct aw88399 *aw88399, struct i2c_client *i2c, struct regmap *regmap) 8ade6cc7e26175 Weidong Wang 2023-10-25 1810 { 8ade6cc7e26175 Weidong Wang 2023-10-25 1811 struct aw_device *aw_dev; 8ade6cc7e26175 Weidong Wang 2023-10-25 1812 unsigned int chip_id; 8ade6cc7e26175 Weidong Wang 2023-10-25 1813 int ret; 8ade6cc7e26175 Weidong Wang 2023-10-25 1814 8ade6cc7e26175 Weidong Wang 2023-10-25 1815 ret = regmap_read(regmap, AW88399_ID_REG, &chip_id); 8ade6cc7e26175 Weidong Wang 2023-10-25 1816 if (ret) { 8ade6cc7e26175 Weidong Wang 2023-10-25 1817 dev_err(&i2c->dev, "%s read chipid error. ret = %d", __func__, ret); 8ade6cc7e26175 Weidong Wang 2023-10-25 1818 return ret; 8ade6cc7e26175 Weidong Wang 2023-10-25 1819 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1820 if (chip_id != AW88399_CHIP_ID) { 8ade6cc7e26175 Weidong Wang 2023-10-25 1821 dev_err(&i2c->dev, "unsupported device"); 8ade6cc7e26175 Weidong Wang 2023-10-25 1822 return -ENXIO; 8ade6cc7e26175 Weidong Wang 2023-10-25 1823 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1824 dev_dbg(&i2c->dev, "chip id = %x\n", chip_id); 8ade6cc7e26175 Weidong Wang 2023-10-25 1825 8ade6cc7e26175 Weidong Wang 2023-10-25 1826 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); 8ade6cc7e26175 Weidong Wang 2023-10-25 1827 if (!aw_dev) 8ade6cc7e26175 Weidong Wang 2023-10-25 1828 return -ENOMEM; 8ade6cc7e26175 Weidong Wang 2023-10-25 1829 aw88399->aw_pa = aw_dev; 8ade6cc7e26175 Weidong Wang 2023-10-25 1830 8ade6cc7e26175 Weidong Wang 2023-10-25 1831 aw_dev->i2c = i2c; 8ade6cc7e26175 Weidong Wang 2023-10-25 1832 aw_dev->dev = &i2c->dev; 8ade6cc7e26175 Weidong Wang 2023-10-25 1833 aw_dev->regmap = regmap; 8ade6cc7e26175 Weidong Wang 2023-10-25 1834 mutex_init(&aw_dev->dsp_lock); 8ade6cc7e26175 Weidong Wang 2023-10-25 1835 8ade6cc7e26175 Weidong Wang 2023-10-25 1836 aw_dev->chip_id = chip_id; 8ade6cc7e26175 Weidong Wang 2023-10-25 1837 aw_dev->acf = NULL; 8ade6cc7e26175 Weidong Wang 2023-10-25 1838 aw_dev->prof_info.prof_desc = NULL; 8ade6cc7e26175 Weidong Wang 2023-10-25 1839 aw_dev->prof_info.count = 0; 8ade6cc7e26175 Weidong Wang 2023-10-25 1840 aw_dev->prof_info.prof_type = AW88395_DEV_NONE_TYPE_ID; 8ade6cc7e26175 Weidong Wang 2023-10-25 1841 aw_dev->channel = AW88399_DEV_DEFAULT_CH; 8ade6cc7e26175 Weidong Wang 2023-10-25 1842 aw_dev->fw_status = AW88399_DEV_FW_FAILED; 8ade6cc7e26175 Weidong Wang 2023-10-25 1843 8ade6cc7e26175 Weidong Wang 2023-10-25 1844 aw_dev->fade_step = AW88399_VOLUME_STEP_DB; 8ade6cc7e26175 Weidong Wang 2023-10-25 1845 aw_dev->volume_desc.ctl_volume = AW88399_VOL_DEFAULT_VALUE; 8ade6cc7e26175 Weidong Wang 2023-10-25 1846 8ade6cc7e26175 Weidong Wang 2023-10-25 1847 aw88399_parse_channel_dt(aw_dev); 8ade6cc7e26175 Weidong Wang 2023-10-25 1848 8ade6cc7e26175 Weidong Wang 2023-10-25 1849 return 0; 8ade6cc7e26175 Weidong Wang 2023-10-25 1850 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1851 8ade6cc7e26175 Weidong Wang 2023-10-25 1852 static int aw88399_i2c_probe(struct i2c_client *i2c) 8ade6cc7e26175 Weidong Wang 2023-10-25 1853 { 8ade6cc7e26175 Weidong Wang 2023-10-25 1854 struct aw88399 *aw88399; 8ade6cc7e26175 Weidong Wang 2023-10-25 1855 int ret; 8ade6cc7e26175 Weidong Wang 2023-10-25 1856 8ade6cc7e26175 Weidong Wang 2023-10-25 1857 if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_I2C)) 8ade6cc7e26175 Weidong Wang 2023-10-25 1858 return dev_err_probe(&i2c->dev, -ENXIO, "check_functionality failed"); 8ade6cc7e26175 Weidong Wang 2023-10-25 1859 8ade6cc7e26175 Weidong Wang 2023-10-25 1860 aw88399 = devm_kzalloc(&i2c->dev, sizeof(*aw88399), GFP_KERNEL); 8ade6cc7e26175 Weidong Wang 2023-10-25 1861 if (!aw88399) 8ade6cc7e26175 Weidong Wang 2023-10-25 1862 return -ENOMEM; 8ade6cc7e26175 Weidong Wang 2023-10-25 1863 8ade6cc7e26175 Weidong Wang 2023-10-25 1864 mutex_init(&aw88399->lock); 8ade6cc7e26175 Weidong Wang 2023-10-25 1865 8ade6cc7e26175 Weidong Wang 2023-10-25 1866 i2c_set_clientdata(i2c, aw88399); 8ade6cc7e26175 Weidong Wang 2023-10-25 1867 8ade6cc7e26175 Weidong Wang 2023-10-25 @1868 aw88399->reset_gpio = devm_gpiod_get_optional(&i2c->dev, "reset", GPIOD_OUT_LOW); 8ade6cc7e26175 Weidong Wang 2023-10-25 1869 if (IS_ERR(aw88399->reset_gpio)) 8ade6cc7e26175 Weidong Wang 2023-10-25 1870 return dev_err_probe(&i2c->dev, PTR_ERR(aw88399->reset_gpio), 8ade6cc7e26175 Weidong Wang 2023-10-25 1871 "reset gpio not defined\n"); 8ade6cc7e26175 Weidong Wang 2023-10-25 1872 aw88399_hw_reset(aw88399); 8ade6cc7e26175 Weidong Wang 2023-10-25 1873 8ade6cc7e26175 Weidong Wang 2023-10-25 1874 aw88399->regmap = devm_regmap_init_i2c(i2c, &aw88399_remap_config); 8ade6cc7e26175 Weidong Wang 2023-10-25 1875 if (IS_ERR(aw88399->regmap)) 8ade6cc7e26175 Weidong Wang 2023-10-25 1876 return dev_err_probe(&i2c->dev, PTR_ERR(aw88399->regmap), 8ade6cc7e26175 Weidong Wang 2023-10-25 1877 "failed to init regmap\n"); 8ade6cc7e26175 Weidong Wang 2023-10-25 1878 8ade6cc7e26175 Weidong Wang 2023-10-25 1879 /* aw pa init */ 8ade6cc7e26175 Weidong Wang 2023-10-25 1880 ret = aw88399_init(aw88399, i2c, aw88399->regmap); 8ade6cc7e26175 Weidong Wang 2023-10-25 1881 if (ret) 8ade6cc7e26175 Weidong Wang 2023-10-25 1882 return ret; 8ade6cc7e26175 Weidong Wang 2023-10-25 1883 8ade6cc7e26175 Weidong Wang 2023-10-25 1884 ret = devm_snd_soc_register_component(&i2c->dev, 8ade6cc7e26175 Weidong Wang 2023-10-25 1885 &soc_codec_dev_aw88399, 8ade6cc7e26175 Weidong Wang 2023-10-25 1886 aw88399_dai, ARRAY_SIZE(aw88399_dai)); 8ade6cc7e26175 Weidong Wang 2023-10-25 1887 if (ret) 8ade6cc7e26175 Weidong Wang 2023-10-25 1888 dev_err(&i2c->dev, "failed to register aw88399: %d", ret); 8ade6cc7e26175 Weidong Wang 2023-10-25 1889 8ade6cc7e26175 Weidong Wang 2023-10-25 1890 return ret; 8ade6cc7e26175 Weidong Wang 2023-10-25 1891 } 8ade6cc7e26175 Weidong Wang 2023-10-25 1892 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki