mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 20:45:31 +07:00
4cb6409bbe
Add include guard to include/linux/platform_data/max197.h to prevent multiple inclusion. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
27 lines
757 B
C
27 lines
757 B
C
/*
|
|
* Maxim MAX197 A/D Converter Driver
|
|
*
|
|
* Copyright (c) 2012 Savoir-faire Linux Inc.
|
|
* Vivien Didelot <vivien.didelot@savoirfairelinux.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* For further information, see the Documentation/hwmon/max197 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 */
|