hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
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 __MAXIM2C_REMOTE_H__
#define __MAXIM2C_REMOTE_H__
 
#include "maxim2c_i2c.h"
 
struct maxim2c_remote;
 
struct maxim2c_remote_ops {
   int (*remote_init)(struct maxim2c_remote *remote);
   int (*remote_deinit)(struct maxim2c_remote *remote);
};
 
typedef struct maxim2c_remote {
   struct i2c_client *client;
   struct device *dev;
   void *local;
   const struct maxim2c_remote_ops *remote_ops;
   struct maxim2c_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;
} maxim2c_remote_t;
 
#endif /* __MAXIM2C_REMOTE_H__ */