brintos

brintos / linux-shallow public Read only

0
0
Text · 560 B · 17e059d Raw
30 lines · c
1/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */2/* Copyright (c) 2016-2018 Mellanox Technologies. All rights reserved */3 4#ifndef _MLXSW_I2C_H5#define _MLXSW_I2C_H6 7#include <linux/i2c.h>8 9#if IS_ENABLED(CONFIG_MLXSW_I2C)10 11int mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver);12void mlxsw_i2c_driver_unregister(struct i2c_driver *i2c_driver);13 14#else15 16static inline int17mlxsw_i2c_driver_register(struct i2c_driver *i2c_driver)18{19	return -ENODEV;20}21 22static inline void23mlxsw_i2c_driver_unregister(struct i2c_driver *i2c_driver)24{25}26 27#endif28 29#endif30