mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
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 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 <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
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
|