From patchwork Wed Jul 21 17:33:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 113399 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6LHYONJ007938 for ; Wed, 21 Jul 2010 17:35:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758224Ab0GURee (ORCPT ); Wed, 21 Jul 2010 13:34:34 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:59315 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756699Ab0GURec (ORCPT ); Wed, 21 Jul 2010 13:34:32 -0400 Received: by mail-bw0-f46.google.com with SMTP id 1so374531bwz.19 for ; Wed, 21 Jul 2010 10:34:30 -0700 (PDT) Received: by 10.204.115.132 with SMTP id i4mr366874bkq.129.1279733670640; Wed, 21 Jul 2010 10:34:30 -0700 (PDT) Received: from localhost.localdomain (93-172-119-238.bb.netvision.net.il [93.172.119.238]) by mx.google.com with ESMTPS id f10sm29348743bkl.5.2010.07.21.10.34.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jul 2010 10:34:29 -0700 (PDT) From: Ohad Ben-Cohen To: , , Cc: , , Chikkature Rajashekar Madhusudhan , Luciano Coelho , , San Mehat , Roger Quadros , Tony Lindgren , Nicolas Pitre , Pandita Vikram , Kalle Valo , Ohad Ben-Cohen Subject: [PATCH v2 03/20] mmc: support embedded data field in mmc_host Date: Wed, 21 Jul 2010 20:33:37 +0300 Message-Id: <1279733634-21974-4-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1279733634-21974-1-git-send-email-ohad@wizery.com> References: <1279733634-21974-1-git-send-email-ohad@wizery.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 21 Jul 2010 17:35:09 +0000 (UTC) diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index f65913c..80db597 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -209,6 +209,8 @@ struct mmc_host { struct led_trigger *led; /* activity led */ #endif + void *embedded_data; + struct dentry *debugfs_root; unsigned long private[0] ____cacheline_aligned; @@ -264,5 +266,15 @@ static inline void mmc_set_disable_delay(struct mmc_host *host, host->disable_delay = disable_delay; } +static inline void *mmc_get_embedded_data(struct mmc_host *host) +{ + return host->embedded_data; +} + +static inline void mmc_set_embedded_data(struct mmc_host *host, void *data) +{ + host->embedded_data = data; +} + #endif