mwavedd.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) mwavedd.c (74880c063b06efd103c924abfe19d9d8fa4864c4)
1/*
2*
3* mwavedd.c -- mwave device driver
4*
5*
6* Written By: Mike Sullivan IBM Corporation
7*
8* Copyright (C) 1999 IBM Corporation

--- 458 unchanged lines hidden (view full) ---

467/*
468 * sysfs support <paulsch@us.ibm.com>
469 */
470
471struct device mwave_device;
472
473/* Prevent code redundancy, create a macro for mwave_show_* functions. */
474#define mwave_show_function(attr_name, format_string, field) \
1/*
2*
3* mwavedd.c -- mwave device driver
4*
5*
6* Written By: Mike Sullivan IBM Corporation
7*
8* Copyright (C) 1999 IBM Corporation

--- 458 unchanged lines hidden (view full) ---

467/*
468 * sysfs support <paulsch@us.ibm.com>
469 */
470
471struct device mwave_device;
472
473/* Prevent code redundancy, create a macro for mwave_show_* functions. */
474#define mwave_show_function(attr_name, format_string, field) \
475static ssize_t mwave_show_##attr_name(struct device *dev, char *buf) \
475static ssize_t mwave_show_##attr_name(struct device *dev, struct device_attribute *attr, char *buf) \
476{ \
477 DSP_3780I_CONFIG_SETTINGS *pSettings = \
478 &mwave_s_mdd.rBDData.rDspSettings; \
479 return sprintf(buf, format_string, pSettings->field); \
480}
481
482/* All of our attributes are read attributes. */
483#define mwave_dev_rd_attr(attr_name, format_string, field) \

--- 191 unchanged lines hidden ---
476{ \
477 DSP_3780I_CONFIG_SETTINGS *pSettings = \
478 &mwave_s_mdd.rBDData.rDspSettings; \
479 return sprintf(buf, format_string, pSettings->field); \
480}
481
482/* All of our attributes are read attributes. */
483#define mwave_dev_rd_attr(attr_name, format_string, field) \

--- 191 unchanged lines hidden ---