ARM: dts: kirkwood: gpio-leds fixes for linkstation ls-wvl/vl
[linux/fpc-iii.git] / drivers / mmc / core / bus.h
blob00a19710b6b449500b613c316c8b167977ba9cb9
1 /*
2 * linux/drivers/mmc/core/bus.h
4 * Copyright (C) 2003 Russell King, All Rights Reserved.
5 * Copyright 2007 Pierre Ossman
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 #ifndef _MMC_CORE_BUS_H
12 #define _MMC_CORE_BUS_H
14 #define MMC_DEV_ATTR(name, fmt, args...) \
15 static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \
16 { \
17 struct mmc_card *card = mmc_dev_to_card(dev); \
18 return sprintf(buf, fmt, args); \
19 } \
20 static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)
22 struct mmc_card *mmc_alloc_card(struct mmc_host *host,
23 struct device_type *type);
24 int mmc_add_card(struct mmc_card *card);
25 void mmc_remove_card(struct mmc_card *card);
27 int mmc_register_bus(void);
28 void mmc_unregister_bus(void);
30 #endif