mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
5d012e512d
Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a const *"), the driver core can properly handle constant struct bus_type, move the host1x_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> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240213-bus_cleanup-host1x-v1-1-54ec51b5d14f@marliere.net
19 lines
362 B
C
19 lines
362 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012 Avionic Design GmbH
|
|
* Copyright (C) 2012-2013, NVIDIA Corporation
|
|
*/
|
|
|
|
#ifndef HOST1X_BUS_H
|
|
#define HOST1X_BUS_H
|
|
|
|
struct bus_type;
|
|
struct host1x;
|
|
|
|
extern const struct bus_type host1x_bus_type;
|
|
|
|
int host1x_register(struct host1x *host1x);
|
|
int host1x_unregister(struct host1x *host1x);
|
|
|
|
#endif
|