hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 *
 */
 
#ifndef __MAXIM4C_REMOTE_H__
#define __MAXIM4C_REMOTE_H__
 
#include "maxim4c_i2c.h"
 
struct maxim4c_remote;
 
struct maxim4c_remote_ops {
   int (*remote_init)(struct maxim4c_remote *remote);
   int (*remote_deinit)(struct maxim4c_remote *remote);
};
 
typedef struct maxim4c_remote {
   struct i2c_client *client;
   struct device *dev;
   void *local;
   const struct maxim4c_remote_ops *remote_ops;
   struct maxim4c_i2c_init_seq remote_init_seq;
 
   u8 remote_id;
   u8 remote_enable;
 
   u8 ser_i2c_addr_def;
   u8 ser_i2c_addr_map;
 
   u8 cam_i2c_addr_def;
   u8 cam_i2c_addr_map;
} maxim4c_remote_t;
 
#endif /* __MAXIM4C_REMOTE_H__ */