mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
8f06fb4585
Since commit d492cc2573
("driver core: device.h: make struct
bus_type a const *"), the driver core can properly handle constant
struct bus_type, move the i3c_bus_type variable to be a constant
structure as well, placing it into read-only memory which can not be
modified at runtime.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240213-bus_cleanup-i3c-v1-1-403aea18f05a@marliere.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
28 lines
849 B
C
28 lines
849 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2018 Cadence Design Systems Inc.
|
|
*
|
|
* Author: Boris Brezillon <boris.brezillon@bootlin.com>
|
|
*/
|
|
|
|
#ifndef I3C_INTERNALS_H
|
|
#define I3C_INTERNALS_H
|
|
|
|
#include <linux/i3c/master.h>
|
|
|
|
extern const struct bus_type i3c_bus_type;
|
|
|
|
void i3c_bus_normaluse_lock(struct i3c_bus *bus);
|
|
void i3c_bus_normaluse_unlock(struct i3c_bus *bus);
|
|
|
|
int i3c_dev_setdasa_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_do_priv_xfers_locked(struct i3c_dev_desc *dev,
|
|
struct i3c_priv_xfer *xfers,
|
|
int nxfers);
|
|
int i3c_dev_disable_ibi_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_enable_ibi_locked(struct i3c_dev_desc *dev);
|
|
int i3c_dev_request_ibi_locked(struct i3c_dev_desc *dev,
|
|
const struct i3c_ibi_setup *req);
|
|
void i3c_dev_free_ibi_locked(struct i3c_dev_desc *dev);
|
|
#endif /* I3C_INTERNAL_H */
|