Message ID | 20240223155731.858412-4-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-78655-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp767133dyb; Fri, 23 Feb 2024 10:26:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHj39wrsnDjDVFZ0Z4dNIZDRyLPzj/4IF3w1/P6D/rIWH+/dXkiABclGxPtje/rF+fhw1TYEYUBNWVojMmD3bbYroEbg== X-Google-Smtp-Source: AGHT+IEEsvVx1nrZq3jd+iOiMmQFraTxaeDY/zKC+5D8AcQXZvbs8InTLy7uUfvYx2QZSdXCORzH X-Received: by 2002:a17:906:4749:b0:a3e:4cb3:13d2 with SMTP id j9-20020a170906474900b00a3e4cb313d2mr411453ejs.17.1708712799690; Fri, 23 Feb 2024 10:26:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708712799; cv=pass; d=google.com; s=arc-20160816; b=ZwsyiKEoj+fhtQq4ev4af7fpN3Tlvn1OkNK0X5xG6shkp3YwMd5cAwFpNlSKlL/T0q OaOYFvlll1PmIpMXuNfnfvGu7G7W5fmGWC7txDN/nthxmAuQdjTBN1IfH38BF6krgb7D HwbOZ1DAcRiS83oDPMBMyqPI46tkiLrxy84In+aevFiVQdEKKi3+hGJLDCaactwOK4e+ GTSiZ5ap3R0PLfpreQSG8PtB5NIHXA1eghSvy9DzLYO4uS7p5mM7sD80J0j1wQvsI02Z cQZ0os9KkxWYXcIaUVTvjVWHXwPSc9Tlnl3PRct0mbMajF+6G4ADU+Mw8LTT3Y1VT4S+ OxgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dyqQjmD8AlrsPjahiWBhs89bS1Lv2wkWsnxyOx9eYqY=; fh=esGoxMbHQqDy/+JRObnRSzx3FC422u/wezAzRwgaoOk=; b=rclA+KMRFFRoX6xVc7KxIhCwMth7txgDFbg1UQi+ZpNf+Fwtw5n4mNGwV/4y8rxN5r YkLn/jJ/bUxhrpQpU34gpI/yccxl1Ig60X07iFdaXHm5GPLCzWrRNlXHjfepdy4QDClY wur9pUhCRJSAnWlZ+7sq3Anw+Y5Pu7bEYWtRKZAUel1jISWatnoTEE8wsFTEijMBArff 7S8wYB21f95kaFNi363DMl3gyoh8Cjm18DdwQwu06g8JfCVfxjBg/0v0tHMtzdy7Sj4A IzSqlGbtNuEh/eVJ8UkBDs/5wnNumIg3KdquaIDmDIouIzARQrujDXPfMGDkbl85Z6zf UWqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IBu47pUz; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-78655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78655-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h2-20020a1709063b4200b00a3e94bc1786si4675930ejf.944.2024.02.23.10.26.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 10:26:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IBu47pUz; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-78655-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78655-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id B9FFB1F26A96 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 15:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2BBC85932; Fri, 23 Feb 2024 15:57:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IBu47pUz" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 F369584A29; Fri, 23 Feb 2024 15:57:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708703871; cv=none; b=heaAJHtNfsIMsWnjuJwik1M6OrfFwAp2omapsGNJoYNeuxpXk/t1him5AOyNy1WCe8TAQfRLX7emkgu1tz9oQtCNrRpkg/w8vzpHErsi5T61oFCqCUMyk/I3oplxMF8/KIzkx4VXHafKEDqN0q2k4UUTNukv1PgqUki/03an7BY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708703871; c=relaxed/simple; bh=E4o0k4MiZVoO6lfp4ioi+ARzdEWQo43M1LChrrkEdsI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a0RAqgOaDv+OTKOHHoLjLH01Af4gYmtcWbchrJGPhDTrlg3Nic0BRCAzqYQefz3HvsfmwLYHEu1+Ppwgnv8Bxw+BJq2UU0Er3KlBelMtsUo8sjZmsz62gO1RSiIIt0G1PJf0+y9UyEhuN4N45cxFdBCWPJ6tfpepqrnPmpWOKno= 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=IBu47pUz; arc=none smtp.client-ip=192.198.163.14 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708703870; x=1740239870; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=E4o0k4MiZVoO6lfp4ioi+ARzdEWQo43M1LChrrkEdsI=; b=IBu47pUzTDvsNqThtr5BzLBxD+oWz3fWIcXu2UQMV9ns8xgaXoxgdAPO OwWmxZZJAbR6QOXOCeQY44PyDjSz+mf9faDXLPCPYmBxz+Y7iDVmEV+cc KyDLvmWBfMgZOgTaqmNbto/wLOqRiSNkQ9jXHUBoZ2rZTCLgghWMOjWub b3xORlsymuUM7eYEx/HybeMGbusUNCYp4kG8F4JK7LIpJzYEX6PCoiX6O Bn7f8Dbnoe3/eAefpo78DmtzDn+cv2oJEXOjLLs32aJOSLg0GKNnp5AEQ Wbihql8FR59kD5+p8lsJBahvzHQfOIkRgF4pruMeUz0tdzRe49/1J4ZFr g==; X-IronPort-AV: E=McAfee;i="6600,9927,10993"; a="3187528" X-IronPort-AV: E=Sophos;i="6.06,180,1705392000"; d="scan'208";a="3187528" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2024 07:57:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10993"; a="937025347" X-IronPort-AV: E=Sophos;i="6.06,180,1705392000"; d="scan'208";a="937025347" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 23 Feb 2024 07:57:41 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 252FD4A5; Fri, 23 Feb 2024 17:57:40 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, Sakari Ailus <sakari.ailus@linux.intel.com>, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Scally <djrscally@gmail.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Len Brown <lenb@kernel.org> Subject: [PATCH v2 3/4] device property: Move enum dev_dma_attr to fwnode.h Date: Fri, 23 Feb 2024 17:54:38 +0200 Message-ID: <20240223155731.858412-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240223155731.858412-1-andriy.shevchenko@linux.intel.com> References: <20240223155731.858412-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791715232323606802 X-GMAIL-MSGID: 1791715232323606802 |
Series |
driver core & device property: clean up APIs
|
|
Commit Message
Andy Shevchenko
Feb. 23, 2024, 3:54 p.m. UTC
The struct fwnode_operations defines one of the callback to return enum dev_dma_attr. But this currently is defined in property.h. Move it to the correct location. Fixes: 8c756a0a2de1 ("device property: Convert device_{dma_supported,get_dma_attr} to fwnode") Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- include/linux/fwnode.h | 6 ++++++ include/linux/property.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h index 416cbe72f0c7..4228c45d5ccc 100644 --- a/include/linux/fwnode.h +++ b/include/linux/fwnode.h @@ -14,6 +14,12 @@ #include <linux/bits.h> #include <linux/err.h> +enum dev_dma_attr { + DEV_DMA_NOT_SUPPORTED, + DEV_DMA_NON_COHERENT, + DEV_DMA_COHERENT, +}; + struct fwnode_operations; struct device; diff --git a/include/linux/property.h b/include/linux/property.h index 284ff79ebf03..1f0135e24d00 100644 --- a/include/linux/property.h +++ b/include/linux/property.h @@ -27,12 +27,6 @@ enum dev_prop_type { DEV_PROP_REF, }; -enum dev_dma_attr { - DEV_DMA_NOT_SUPPORTED, - DEV_DMA_NON_COHERENT, - DEV_DMA_COHERENT, -}; - const struct fwnode_handle *__dev_fwnode_const(const struct device *dev); struct fwnode_handle *__dev_fwnode(struct device *dev); #define dev_fwnode(dev) \