From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 402A5433E90 for ; Fri, 3 Jul 2026 07:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783065152; cv=none; b=YPZIzRJNY7EFVQb94N7eCMgZSf8lTQyO/pPshMYJbQfJlXu+u0EIUe+VeUyf6E46KNQAaUqFzhyI+EV9UkCpaItmEohQZzq/Wu67EI49GQR2IET8PrUc501isIxEYGeF7za0QQ0y2EqIca4r+HqC2AxMcre69OMKyifDn2GyXtw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783065152; c=relaxed/simple; bh=MZ27mN80d4OzI68F8kjmi2YsTS5euCR2XvkeUvgJHGY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=Y0rjuyiuyjEPcZO+rc4lRGG76qG1VUdIL1OzJv3XFl+DlkE+aHV7gx8gh0gZHAlyUgx6mqsO0ygk5MY5pjnw5A9L8dJaafDaFlLX2WeIFM2+vh8fzOz9DM+8GjQQ1Jb+/FMWs7Mhttndkyk7CG7RrbhuOiyeVc3QikyR10FKSN8= 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=jZbq4w/D; arc=none smtp.client-ip=198.175.65.13 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jZbq4w/D" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1783065150; x=1814601150; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=MZ27mN80d4OzI68F8kjmi2YsTS5euCR2XvkeUvgJHGY=; b=jZbq4w/DfzoAapidyKhjf9NiPlDkpTjFM+NKSp1pWIBf8yjLR5DI5tx0 99TBswu7aNNxCKem0y00QeAq+90jqVKkaOc17XMO53iO4wUJsAdPbGZtM akikXk2HmxCeNf+Fn6SDKRJ31XWKvZddovZq1VC3V8iBDaTMzn3xTBRFZ t36d0DIwEpZrBxSc7RSgWR0C9FTFxSJmbnk4MnnKeXqKdXUMVwdiD0wRL DmJF41/RBLWPSh/isO0ssdaQ74hQLw3JJzKfnrEctlSl/RoGYJGD8DkLp mFJ3N7SsO7iE9/cwWPHqHn1I1Z5qbRZVUYTW3z/2bRn+HlDUVYt8Z13K2 A==; X-CSE-ConnectionGUID: AfGyCYW9RpqZIU11vemZ1Q== X-CSE-MsgGUID: qoFI5QcjS8uy43JxtWGyOQ== X-IronPort-AV: E=McAfee;i="6800,10657,11835"; a="94968986" X-IronPort-AV: E=Sophos;i="6.25,145,1779174000"; d="scan'208";a="94968986" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2026 00:52:30 -0700 X-CSE-ConnectionGUID: WXTXOPsbSWSWszhbkXc9uw== X-CSE-MsgGUID: RbYuRdWkQh2430X+o7Y+3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,145,1779174000"; d="scan'208";a="253193601" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by orviesa007.jf.intel.com with ESMTP; 03 Jul 2026 00:52:28 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wfYhB-00000000Bq3-22vk; Fri, 03 Jul 2026 07:52:21 +0000 Date: Fri, 03 Jul 2026 15:51:29 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: [thomas-weissschuh:b4/cros_ec-hwmon-locking 2/6] drivers/hwmon/cros_ec_hwmon.c:578 cros_ec_hwmon_probe() warn: passing zero to 'PTR_ERR' Message-ID: <202607031558.090AWNd1-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev TO: "Thomas Wei=C3=9Fschuh" tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/l= inux.git b4/cros_ec-hwmon-locking head: 95003896306434c5e2d6cae819f38179e0f5048f commit: d54d63ebb10e19d82a484c16372173926c021022 [2/6] priv :::::: branch date: 2 days ago :::::: commit date: 2 days ago config: sparc-randconfig-r071-20260702 (https://download.01.org/0day-ci/arc= hive/20260703/202607031558.090AWNd1-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.4.0 smatch: v0.5.0-9185-gbcc58b9c If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202607031558.090AWNd1-lkp@intel.com/ smatch warnings: drivers/hwmon/cros_ec_hwmon.c:578 cros_ec_hwmon_probe() warn: passing zero = to 'PTR_ERR' vim +/PTR_ERR +578 drivers/hwmon/cros_ec_hwmon.c 5798b62867b47b Sung-Chi Li 2025-09-11 545 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 546 static int cros_ec_hw= mon_probe(struct platform_device *pdev) bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 547 { bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 548 struct device *dev = =3D &pdev->dev; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 549 struct cros_ec_dev *= ec_dev =3D dev_get_drvdata(dev->parent); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 550 struct cros_ec_devic= e *cros_ec =3D ec_dev->ec_dev; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 551 struct cros_ec_hwmon= _priv *priv; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 552 struct device *hwmon= _dev; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 553 u8 thermal_version; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 554 int ret; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 555 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 556 ret =3D cros_ec_cmd_= readmem(cros_ec, EC_MEMMAP_THERMAL_VERSION, 1, &thermal_version); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 557 if (ret < 0) bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 558 return ret; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 559 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 560 /* Covers both fan a= nd temp sensors */ bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 561 if (thermal_version = =3D=3D 0) bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 562 return -ENODEV; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 563 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 564 priv =3D devm_kzallo= c(dev, sizeof(*priv), GFP_KERNEL); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 565 if (!priv) bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 566 return -ENOMEM; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 567 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 568 priv->cros_ec =3D cr= os_ec; bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 569 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 570 cros_ec_hwmon_probe_= temp_sensors(dev, priv, thermal_version); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 571 cros_ec_hwmon_probe_= fans(priv); fb8e659309f72e Sung-Chi Li 2025-09-11 572 priv->fan_control_support= ed =3D cros_ec_hwmon_probe_fan_control_supported(priv->cros_ec); afa7c56ec44731 Thomas Wei=C3=9Fschuh 2026-01-18 573 priv->temp_threshold= _supported =3D is_cros_ec_cmd_available(priv->cros_ec, afa7c56ec44731 Thomas Wei=C3=9Fschuh 2026-01-18 574 EC_CMD_THER= MAL_GET_THRESHOLD, 1); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 575 =20 d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 576 priv->hwmon_dev =3D = devm_hwmon_device_register_with_info(dev, "cros_ec", priv, bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 577 &cros_e= c_hwmon_chip_info, NULL); d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 @578 if (PTR_ERR(priv->hw= mon_dev)) d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 579 return PTR_ERR(priv= ->hwmon_dev); d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 580 =20 d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 581 cros_ec_hwmon_regist= er_fan_cooling_devices(dev, priv); d54d63ebb10e19 Thomas Wei=C3=9Fschuh 2026-07-01 582 =20 fb8e659309f72e Sung-Chi Li 2025-09-11 583 platform_set_drvdata(pdev= , priv); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 584 =20 bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 585 return PTR_ERR_OR_ZE= RO(hwmon_dev); bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 586 } bc3e45258096f2 Thomas Wei=C3=9Fschuh 2024-05-29 587 =20 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 232BC3FC5A2 for ; Thu, 9 Jul 2026 10:37:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783593444; cv=none; b=EEB8S9sxhXNpG3lgx6x4gOPvpAGqkbAkOk3RvzXXeXNk5/FdcQjG7HalkpDWUuW0fTaWDRzg9+U1cwWiZx606Oii5qaRsPPHeH+VU69FDsuvHyHuIPFztfjHr4MGKe2BHcdE5WqdhJxOurF1eDiMhJxoGEphRY3sm2b8HbOpnAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783593444; c=relaxed/simple; bh=NHtqz9oIRl9tOwnzyplBsSIEsyZlsEDbyJayOyG6x1U=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ESO0BMaCdd2A99L+327gaB/wmLte/ToSno88lmU395Sx/dbPOBF9hqNmgwi6ofOnO1qY/vQ3yZ0HKLFiYaXVozdayle/TlGMDEDwaRKBDr4mM+gDI7wzMBUgblJxnBiiIR7P308ED8WRbRdJkJr87uVA54XvT+Zwn5bsJsyqmtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bK2FAEYa; arc=none smtp.client-ip=209.85.210.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bK2FAEYa" Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-7e9fc3de7ceso625173a34.1 for ; Thu, 09 Jul 2026 03:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783593442; x=1784198242; darn=lists.linux.dev; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=fwqQQlt7bfetmW8kry4/TUBjnsZkk8XLprYNoxOM8HE=; b=bK2FAEYapUWz+uB1McMzolbTYpMcEwyeumzjftoH5k1Q1a0q7m8F7lcHTM7rnspo/A b1dm8CmVXJgTZT6stkfGkhvYBg3psSp+BgDQ5ouKzH1q2Jm3lqIVtiSRDhzgnDooA8jF 661wQVG3LOx7ZPuFbtes7E/abQBs3cjGP1rgAudTliUx0Cmu6EbznkKWb1oAA4aCQTyQ syrpeYME9hBR9JZEsxsGe8rVMgDwhDXwwLyh9edKKrpiBMwXPaqnPmjhRNxgZAw8DVJB VkbbEBgw3e8YuEnWDG/k+WuRFkYPSobaeA6xFqwBapbCvq6kf0h3Rt4HIMJia22N/QJ0 SPdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783593442; x=1784198242; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fwqQQlt7bfetmW8kry4/TUBjnsZkk8XLprYNoxOM8HE=; b=ruarQxtNWUd8F7qkNnGbAOoPphhzyfJczVOWl0FtHDF6uwruDgUhZLxyY7liXt8FqR nm+tdG+hs+ghyMFpklVdEJ/8lxBuYMQD97qAlpbB2d11qEe7ZLovvQixmfYpuzxFAME7 IbkwFEIR3RonbzlHAoIehkUZY9oIDihPKH49WyxUwzW0Lb2C0cUyN3iY+IBxkzeWKZJx UCjn+hdU/jsqUtIUu1gnJ/gGX7gI4uP23MfD+0ke8vf4wtrDlWoHUOlWf7gpFKWaA6Jt /6SMAYI/HjyG7PZnhfw9XUjPlIcFeDFzlvYwE1ibp/dAT5UigAqLn3Ko31zv/y7bNN7l LJsQ== X-Gm-Message-State: AOJu0YyjSJeqRAgtwpkLW6KTN7U2aV1WzbUdJJ+jEnuHxSRKzu7GFq+7 IxNkpIRCqRbTNqb2FI40XlzLS4tBhtDIcQQZYvMCz9MxM7Ub6zDGyqCT3RsHmR1Pc1o= X-Gm-Gg: AfdE7cmJRJ0I+XoUU0QPk727iU1c/xB69c0WwOHHAnRJkUloZATpmpbOAPR53krAHW4 WcMDyuno0e38XecCGu5qVjg3t1kqKpPjIcwQtWXisxowg+CtYEnUGM1Ow5nPM5KJpuFue4HgdgO TVMuJTM+/6QuGqPfmAsO8ywJrfgyGb3HRdcfFOvX0SNqUIOgpEvEP+brAInxBoiEnTtpkeG40Qx byCUyahoooNK9p8hHgxxzm3IIq9K8gaNvrc8Tx3yEtdHOyi9Gc6EhQo8iPg/WAkd1CVVXijuZWK x1RxK6ACD50lUmKbjq61W2BbXaQc2cOdlL5wwR5qtw2WI8SgIMiuZSm3JX/DcPUsF+Lk8L2Niwp qbQaLfvVa76+iMNkQb+7WdTucuVfpYpsnD306Zm0DkybR78R4I/oZ+U5uUW3Me4MmnPfmtnMxdu RuUOA5GsVuskYlfE0= X-Received: by 2002:a05:6830:7316:b0:7e5:6c74:b295 with SMTP id 46e09a7af769-7ebcfea2707mr4532467a34.14.1783593441824; Thu, 09 Jul 2026 03:37:21 -0700 (PDT) Received: from localhost ([74.80.182.70]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ebcb2bae7fsm4084912a34.21.2026.07.09.03.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 03:37:20 -0700 (PDT) Date: Thu, 9 Jul 2026 13:37:14 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev Subject: [thomas-weissschuh:b4/cros_ec-hwmon-locking 2/6] drivers/hwmon/cros_ec_hwmon.c:578 cros_ec_hwmon_probe() warn: passing zero to 'PTR_ERR' Message-ID: <202607031558.090AWNd1-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Message-ID: <20260709103714.VgCV9Zd3JTMXRriEwzwmi7nnuPH7nIgrSvm-t7wJqvE@z> tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/cros_ec-hwmon-locking head: 95003896306434c5e2d6cae819f38179e0f5048f commit: d54d63ebb10e19d82a484c16372173926c021022 [2/6] priv config: sparc-randconfig-r071-20260702 (https://download.01.org/0day-ci/archive/20260703/202607031558.090AWNd1-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 13.4.0 smatch: v0.5.0-9185-gbcc58b9c 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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202607031558.090AWNd1-lkp@intel.com/ smatch warnings: drivers/hwmon/cros_ec_hwmon.c:578 cros_ec_hwmon_probe() warn: passing zero to 'PTR_ERR' vim +/PTR_ERR +578 drivers/hwmon/cros_ec_hwmon.c bc3e45258096f2 Thomas Weißschuh 2024-05-29 546 static int cros_ec_hwmon_probe(struct platform_device *pdev) bc3e45258096f2 Thomas Weißschuh 2024-05-29 547 { bc3e45258096f2 Thomas Weißschuh 2024-05-29 548 struct device *dev = &pdev->dev; bc3e45258096f2 Thomas Weißschuh 2024-05-29 549 struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent); bc3e45258096f2 Thomas Weißschuh 2024-05-29 550 struct cros_ec_device *cros_ec = ec_dev->ec_dev; bc3e45258096f2 Thomas Weißschuh 2024-05-29 551 struct cros_ec_hwmon_priv *priv; bc3e45258096f2 Thomas Weißschuh 2024-05-29 552 struct device *hwmon_dev; bc3e45258096f2 Thomas Weißschuh 2024-05-29 553 u8 thermal_version; bc3e45258096f2 Thomas Weißschuh 2024-05-29 554 int ret; bc3e45258096f2 Thomas Weißschuh 2024-05-29 555 bc3e45258096f2 Thomas Weißschuh 2024-05-29 556 ret = cros_ec_cmd_readmem(cros_ec, EC_MEMMAP_THERMAL_VERSION, 1, &thermal_version); bc3e45258096f2 Thomas Weißschuh 2024-05-29 557 if (ret < 0) bc3e45258096f2 Thomas Weißschuh 2024-05-29 558 return ret; bc3e45258096f2 Thomas Weißschuh 2024-05-29 559 bc3e45258096f2 Thomas Weißschuh 2024-05-29 560 /* Covers both fan and temp sensors */ bc3e45258096f2 Thomas Weißschuh 2024-05-29 561 if (thermal_version == 0) bc3e45258096f2 Thomas Weißschuh 2024-05-29 562 return -ENODEV; bc3e45258096f2 Thomas Weißschuh 2024-05-29 563 bc3e45258096f2 Thomas Weißschuh 2024-05-29 564 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); bc3e45258096f2 Thomas Weißschuh 2024-05-29 565 if (!priv) bc3e45258096f2 Thomas Weißschuh 2024-05-29 566 return -ENOMEM; bc3e45258096f2 Thomas Weißschuh 2024-05-29 567 bc3e45258096f2 Thomas Weißschuh 2024-05-29 568 priv->cros_ec = cros_ec; bc3e45258096f2 Thomas Weißschuh 2024-05-29 569 bc3e45258096f2 Thomas Weißschuh 2024-05-29 570 cros_ec_hwmon_probe_temp_sensors(dev, priv, thermal_version); bc3e45258096f2 Thomas Weißschuh 2024-05-29 571 cros_ec_hwmon_probe_fans(priv); fb8e659309f72e Sung-Chi Li 2025-09-11 572 priv->fan_control_supported = cros_ec_hwmon_probe_fan_control_supported(priv->cros_ec); afa7c56ec44731 Thomas Weißschuh 2026-01-18 573 priv->temp_threshold_supported = is_cros_ec_cmd_available(priv->cros_ec, afa7c56ec44731 Thomas Weißschuh 2026-01-18 574 EC_CMD_THERMAL_GET_THRESHOLD, 1); bc3e45258096f2 Thomas Weißschuh 2024-05-29 575 d54d63ebb10e19 Thomas Weißschuh 2026-07-01 576 priv->hwmon_dev = devm_hwmon_device_register_with_info(dev, "cros_ec", priv, bc3e45258096f2 Thomas Weißschuh 2024-05-29 577 &cros_ec_hwmon_chip_info, NULL); d54d63ebb10e19 Thomas Weißschuh 2026-07-01 @578 if (PTR_ERR(priv->hwmon_dev)) s/PTR_ERR/IS_ERR/ d54d63ebb10e19 Thomas Weißschuh 2026-07-01 579 return PTR_ERR(priv->hwmon_dev); d54d63ebb10e19 Thomas Weißschuh 2026-07-01 580 d54d63ebb10e19 Thomas Weißschuh 2026-07-01 581 cros_ec_hwmon_register_fan_cooling_devices(dev, priv); d54d63ebb10e19 Thomas Weißschuh 2026-07-01 582 fb8e659309f72e Sung-Chi Li 2025-09-11 583 platform_set_drvdata(pdev, priv); bc3e45258096f2 Thomas Weißschuh 2024-05-29 584 bc3e45258096f2 Thomas Weißschuh 2024-05-29 585 return PTR_ERR_OR_ZERO(hwmon_dev); bc3e45258096f2 Thomas Weißschuh 2024-05-29 586 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki