Go to the documentation of this file.
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) \
17 struct mmc_card *card = mmc_dev_to_card(dev); \
18 return sprintf(buf, fmt, args); \
20 static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)