linux/include/linux/mfd/rave-sp.h

/* SPDX-License-Identifier: GPL-2.0+ */

/*
 * Core definitions for RAVE SP MFD driver.
 *
 * Copyright (C) 2017 Zodiac Inflight Innovations
 */

#ifndef _LINUX_RAVE_SP_H_
#define _LINUX_RAVE_SP_H_

#include <linux/notifier.h>

enum rave_sp_command {};

struct rave_sp;

static inline unsigned long rave_sp_action_pack(u8 event, u8 value)
{}

static inline u8 rave_sp_action_unpack_event(unsigned long action)
{}

static inline u8 rave_sp_action_unpack_value(unsigned long action)
{}

int rave_sp_exec(struct rave_sp *sp,
		 void *__data,  size_t data_size,
		 void *reply_data, size_t reply_data_size);

struct device;
int devm_rave_sp_register_event_notifier(struct device *dev,
					 struct notifier_block *nb);

#endif /* _LINUX_RAVE_SP_H_ */