xref: /linux/include/linux/platform_data/max197.h (revision d2912cb1)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
26c1fe725SVivien Didelot /*
36c1fe725SVivien Didelot  * Maxim MAX197 A/D Converter Driver
46c1fe725SVivien Didelot  *
56c1fe725SVivien Didelot  * Copyright (c) 2012 Savoir-faire Linux Inc.
66c1fe725SVivien Didelot  *          Vivien Didelot <vivien.didelot@savoirfairelinux.com>
76c1fe725SVivien Didelot  *
87ebd8b66SMauro Carvalho Chehab  * For further information, see the Documentation/hwmon/max197.rst file.
96c1fe725SVivien Didelot  */
106c1fe725SVivien Didelot 
114cb6409bSVivien Didelot #ifndef _PDATA_MAX197_H
124cb6409bSVivien Didelot #define _PDATA_MAX197_H
134cb6409bSVivien Didelot 
146c1fe725SVivien Didelot /**
156c1fe725SVivien Didelot  * struct max197_platform_data - MAX197 connectivity info
166c1fe725SVivien Didelot  * @convert:	Function used to start a conversion with control byte ctrl.
176c1fe725SVivien Didelot  *		It must return the raw data, or a negative error code.
186c1fe725SVivien Didelot  */
196c1fe725SVivien Didelot struct max197_platform_data {
206c1fe725SVivien Didelot 	int (*convert)(u8 ctrl);
216c1fe725SVivien Didelot };
224cb6409bSVivien Didelot 
234cb6409bSVivien Didelot #endif /* _PDATA_MAX197_H */
24