repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
24 lines
615 B
C
24 lines
615 B
C
/* 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 */
|