diff options
Diffstat (limited to 'include/linux/platform_data/max197.h')
-rw-r--r-- | include/linux/platform_data/max197.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/platform_data/max197.h b/include/linux/platform_data/max197.h new file mode 100644 index 000000000..03ef46f9c --- /dev/null +++ b/include/linux/platform_data/max197.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Maxim MAX197 A/D Converter Driver + * + * Copyright (c) 2012 Savoir-faire Linux Inc. + * Vivien Didelot <vivien.didelot@savoirfairelinux.com> + * + * For further information, see the Documentation/hwmon/max197.rst file. + */ + +#ifndef _PDATA_MAX197_H +#define _PDATA_MAX197_H + +/** + * struct max197_platform_data - MAX197 connectivity info + * @convert: Function used to start a conversion with control byte ctrl. + * It must return the raw data, or a negative error code. + */ +struct max197_platform_data { + int (*convert)(u8 ctrl); +}; + +#endif /* _PDATA_MAX197_H */ |