From patchwork Tue Mar 5 16:52:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 778278 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 2E3DCC8CE; Tue, 5 Mar 2024 16:53:10 +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=1709657592; cv=none; b=hZ10NFyVBMgUmm3IrSp9Qo9LA0s4EbxdXj0GiEYl/NA1MGnKeiqRwrHl7SOZJ+YliZHdbLlYY5YZ3LnX9/sRu9c+nciFQy3m9I77Y7X9VAAh9TcLGfpaPMMec67iA1sUqyOidVtIG34650pRm9jszDuQK44xLXFn5Kh7UI772PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709657592; c=relaxed/simple; bh=8wBeUlZOEVjXChYznBbLSzV2No/jKhNzLoQNz64g650=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=peS9pnkkHgRUB/eI59KcGgAJ0o9v7EJst16skppv7EfqEKfXDS1WPecoNQbRGz83/ShVNGDLTY4XZ7QdHiH6bJTJmhEWbG9xQsyc2ZnMEvhTKriZK2PmvTaxm7hlMO2K54aDFnbOogS1/+nAUOTvtNIQIAnE69YGfJmvLD4G608= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=c/kChBKQ; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="c/kChBKQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709657591; x=1741193591; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8wBeUlZOEVjXChYznBbLSzV2No/jKhNzLoQNz64g650=; b=c/kChBKQzLdYQNX6FWCmWAGmj1r4xm7zgCAsMYkDxFJDVzBs6HtsP609 lHGDtddN7B2WhbKJT8Pjk61I7gq0S5f2DvB95V7nVsP0B1hjbm9L125ed uNSrsXIExo6gtETs/ToYU+jLWXOBZEsojqszIoTJdEAZLUSwd88nk/3kk YamKf00waA4n6eafdWNxWi97qUFuDxOWT3lOCY+oEEWSwSY6sTFMFcZMk PVPOIzbSPUPXvJMxGiSjIkrNb/q3mJ5huDFvdw/MEZvou2n9pXS6wtUXg pdK1kUVZAyAzhWWRIRkA3qx6RY5FiF2PXK/8hoLY2ql4F7rmETVtPQJCb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="7992134" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="7992134" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 08:53:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="937042725" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="937042725" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2024 08:53:08 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id A279112B; Tue, 5 Mar 2024 18:53:07 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wim Van Sebroeck , Guenter Roeck Subject: [PATCH v1 1/3] watchdog: intel-mid_wdt: Remove unused intel-mid.h Date: Tue, 5 Mar 2024 18:52:18 +0200 Message-ID: <20240305165306.1366823-2-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> References: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 intel-mid.h is providing some core parts of the South Complex PM, which are usually are not used by individual drivers. In particular, this driver doesn't use it, so simply remove the unused header. Signed-off-by: Andy Shevchenko Reviewed-by: Guenter Roeck --- drivers/watchdog/intel-mid_wdt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index fb7fae750181..b41c45582aa4 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -17,7 +17,6 @@ #include #include -#include #define IPC_WATCHDOG 0xf8 From patchwork Tue Mar 5 16:52:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 778496 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 D962FD2E6; Tue, 5 Mar 2024 16:53:12 +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=1709657594; cv=none; b=WnskS5xtbgNJ5rgLfJw9d/3YkG5Sr/1Wx7kYbIZ7HPMgvn5DT8wmNoaYJLejAEe5271oPGdnwV3B6CwQyrlrmekglWHpaZpFuUh7npnBhnfbtLc52JRt4RP99ykKmp0McwtDe4RrmOX9rmjTLKwgg3MhBrVIlGpndxLG3Ym+xNE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709657594; c=relaxed/simple; bh=LebP59pVzvf6mGQ4wjdC68Z5qKPE1ig+GgCUG7F6czs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i7KIt7NgX+8dZY9SB2g/ZjWXvYWbe4Sr+UohdeianY7CFcp+hifZPIhT9DWJU4bOcSbN+ccl1bRM/hOJBF+s2cKwaJz4u2wnyAxoeB2UQiQcfd8FusIo4yVK9f9S1U1zFBJBgQBKGCP42MZ+ft7vp75ZmLK+wD/mymZ5FqrI5D4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HGS3aQFb; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HGS3aQFb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709657593; x=1741193593; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LebP59pVzvf6mGQ4wjdC68Z5qKPE1ig+GgCUG7F6czs=; b=HGS3aQFbzrOB4weP0YojUUcgDRACCWrQ+ViQVXMe5hNoWj6G6J8SOyC3 qvi5tIvufqcBKD8H5ORQfxaDJnxb7J1iaHKZkRnwaJe2NIg3s3RYKpQLN XewwTewRsC1u2w4buA5hDeayaLVrgmciNmPPFaGzySKZW+ufHLDfKPnrU rm5Dut5+uuxsaB23eSzq75KoLnQOYUPhCm0G1lkg5eCoIDxy+iquEAGC1 u2n6NIksmndFoQKtxzWhzyIJ0F3mAEL+vdR47mzyr4pQIWMxbQ4Lzmjrx D0vBpnM2yetfo4G1DSxfalpr6Rx7QLMB6hC2cU62ljsXFHLRoMmNzPba3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="7992138" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="7992138" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 08:53:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="937042726" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="937042726" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2024 08:53:08 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id B16023F1; Tue, 5 Mar 2024 18:53:07 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wim Van Sebroeck , Guenter Roeck Subject: [PATCH v1 2/3] watchdog: intel-mid_wdt: Don't use "proxy" headers Date: Tue, 5 Mar 2024 18:52:19 +0200 Message-ID: <20240305165306.1366823-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> References: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Update header inclusions to follow IWYU (Include What You Use) principle. Signed-off-by: Andy Shevchenko Reviewed-by: Guenter Roeck --- drivers/watchdog/intel-mid_wdt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index b41c45582aa4..06d5d207a065 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -9,11 +9,17 @@ * Contact: David Cohen */ +#include +#include +#include #include +#include #include -#include +#include #include +#include #include + #include #include From patchwork Tue Mar 5 16:52:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 778495 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 C3DE214AA8; Tue, 5 Mar 2024 16:53:14 +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=1709657596; cv=none; b=pRqHWBTDMog6kotCE4G16ZdjNItXDd5b2nzxMwLUiVstOQiWZ5OLGGoEORttBLInZpV2N4NyHql6Uu5tuN2Ov1WbKLYO2PZUw2Z+LTqvVFORSEY9MyPuqYRRP+z70ptH8BiTrCPxI7B3fU27BENJ0TK87kZdeIx0JwKRiKMYPyw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709657596; c=relaxed/simple; bh=fF6x/ulpwTNFTzp9klWdwKw9EJhQYUlQo/GNrjzse7o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EkXW9f/nCPxOaWAguqZ/4YrNcNQOGvSPCRt+r1tZKvTthYXUYzbp+8AhFM0bP+FPhPSxUMvhJz2Fp6zAXLxJUVhPm9+gHkmyWbIwYRmofYuPqsQ2pIVnUaL4zGiMDSIwQus8Sjzov5m7CsHvMSuNz99/L8cYSMi73HXIu13oznw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MzqsN3/h; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MzqsN3/h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709657595; x=1741193595; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fF6x/ulpwTNFTzp9klWdwKw9EJhQYUlQo/GNrjzse7o=; b=MzqsN3/h2C4YeKthFoNwYxf/uvySsCgiwReFC1t5E35F0dzxM1PIl33d HMkt+xvwhGlOW0md5C3qs81sPF6TPgFzc9TpDIrEHziFMlkhMe6QqcElh c+UgaTl/Eo0cir1QgU8PnmDrLufsD2G9aCBeLhazA4A3zI1ueN3383DlX J9TVrdhqgI0EVhoAAZg/PB9Vp3NCNmSUokVna5BsddKHP5ilT8Mi8t1lS yXbWRBkKGOcr2q4X/3bVBsMSRYvNyNlHgZPqa8VECpKTVuydlpBeaKio8 Zy4jBXqmhK7cg3v0lSL6/gUpWA3FH5x1i35ZjbpE2NqZ9RCQjbi87G21K A==; X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="7992146" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="7992146" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 08:53:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="937042728" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="937042728" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 05 Mar 2024 08:53:08 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id B89D84E9; Tue, 5 Mar 2024 18:53:07 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wim Van Sebroeck , Guenter Roeck Subject: [PATCH v1 3/3] watchdog: intel-mid_wdt: Get platform data via dev_get_platdata() Date: Tue, 5 Mar 2024 18:52:20 +0200 Message-ID: <20240305165306.1366823-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> References: <20240305165306.1366823-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Access to platform data via dev_get_platdata() getter to make code cleaner. Signed-off-by: Andy Shevchenko Reviewed-by: Guenter Roeck --- drivers/watchdog/intel-mid_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index 06d5d207a065..8d71f6a2236b 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -127,7 +127,7 @@ static int mid_wdt_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct watchdog_device *wdt_dev; - struct intel_mid_wdt_pdata *pdata = dev->platform_data; + struct intel_mid_wdt_pdata *pdata = dev_get_platdata(dev); struct mid_wdt *mid; int ret;