Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp779867imj; Sat, 9 Feb 2019 07:49:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IZC0s4VZxDa1sMcGI5INUrDw2zwipsu65Epi3nBq5n22QW7btZa8uEG8QJr6w6Vn1HI8kJq X-Received: by 2002:a62:5007:: with SMTP id e7mr28301639pfb.92.1549727381083; Sat, 09 Feb 2019 07:49:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549727381; cv=none; d=google.com; s=arc-20160816; b=xoa9IlAA6fYOoNsXDGuezFj2VJVwc2HxrqwNyWQuZpBN4m2LUxAswGiLinsBp+hD4d 0+Ap0rdD7YGTq7PDBkHQQygPgEKb6sRdq/Ti0BYvAyH8tQSBN5r0ybWlUADwiAEK0RR8 57G8vcJRWOsHQknVtnh5fRxckMb4CWp2Br+3peJBfzi541uP4fyX8qU9g46rqe6gvRWd WSA3+vpAOYKYjQ+qbjXEOjxSaz2usYTDk62GmrC38GF7VGsXZ0D9HzyaY/yvVA/Sk1Ks 9JhKvsKV7AT7T/Xg5UccQBc/KUx9sGNa4+QJXHr1hREJG7fXerkCXg7fWoENhu1phszZ /dHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Ujb2BnUEG5Rtl59HTwLlkBR+zG2SzOBXXugSaS4GtrE=; b=L4aAwLCT1A0jcyzKl1H9omhFy8ER2iJJj1hd19oGCVYeCJWgog8dVYx2lS+lVPrBGi Z827Devx5gZiTNJCQVaj48rAeRMKyLlfHyZRjfinC7HRTf4IVjtQsVRFWEN1AQ77GhJH t00m79rZ2CdyEZySnRz/XfRuTMo/fWK438qJIj0tMf44vD9AO7VhYDQ1Q46+Oes4sakQ N4l9KiPNjIWBoB3ztZqZcMStXlEJtnhXOqAP37d51E0DwjQ4u+LKMZXEgTRGIFwryJCk Ealb+soFHF8bddhen1KNol18mr2qmTTtPkCTc2W6dXxXruRUQ5nWZxIr3F9CcPIe+ROV fb7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs18si6195372plb.119.2019.02.09.07.49.23; Sat, 09 Feb 2019 07:49:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbfBIPtT (ORCPT + 99 others); Sat, 9 Feb 2019 10:49:19 -0500 Received: from mga18.intel.com ([134.134.136.126]:56601 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726741AbfBIPtS (ORCPT ); Sat, 9 Feb 2019 10:49:18 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2019 07:49:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,351,1544515200"; d="scan'208";a="114934975" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by orsmga006.jf.intel.com with ESMTP; 09 Feb 2019 07:49:16 -0800 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler Subject: [char-misc-next] mei: bus: export to_mei_cl_device for mei client devices drivers Date: Sat, 9 Feb 2019 18:42:05 +0200 Message-Id: <20190209164205.1583-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export to_mei_cl_device macro, as it is needed also in the mei client drivers. Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 1 - include/linux/mei_cl_bus.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index fc3872fe7b25..e5456faf00e6 100644 --- a/drivers/misc/mei/bus.c +++ b/drivers/misc/mei/bus.c @@ -28,7 +28,6 @@ #include "client.h" #define to_mei_cl_driver(d) container_of(d, struct mei_cl_driver, driver) -#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev) /** * __mei_cl_send - internal client send (write) diff --git a/include/linux/mei_cl_bus.h b/include/linux/mei_cl_bus.h index 7fde40e17c8b..03b6ba2a63f8 100644 --- a/include/linux/mei_cl_bus.h +++ b/include/linux/mei_cl_bus.h @@ -55,6 +55,8 @@ struct mei_cl_device { void *priv_data; }; +#define to_mei_cl_device(d) container_of(d, struct mei_cl_device, dev) + struct mei_cl_driver { struct device_driver driver; const char *name; -- 2.20.1