Update peci-next for v6.10-rc1
- Move peci_bus_type, peci_controller_type and peci_device_type to be constant. -----BEGIN PGP SIGNATURE----- iQJOBAABCAA4FiEEVeIYQcCloMPRsCC93RgStozwYHYFAmYilsMaHGl3b25hLndp bmlhcnNrYUBpbnRlbC5jb20ACgkQ3RgStozwYHZYOBAApNWoayMbJZssJEc0MOvJ 49tiiWJAFhc96pN+r+mv/uyKV/MVEd9Ti67hZL7ATgeyd55RC/c7h30JFlLEu/G5 N3jM6DZaOAyMHHqhxa8mnQzsCIGem/wviLPozvACa2Ju/6nj9eV1pqXZ6Nh2NV+7 5ONBEAwlctjcwCIJAd4qrodDTokjYo0sM44FrtvLCr/GXxfZD1v1TYmvX5BtRwP6 LRtmqqCyggV3AGUNsPMh3xYsttVDzZEeTj7FRDgSsFgRjOaEBeisToVPKsExjTxt zABlz8SQ9OqGYXWNQpKbc81Ray5n88e4Jcfm0k/uiC1/bO1qW9vO+C6krPmLCieN ApMOPqNfmraELh9zKMS3bPzlyefUgVDS476XlURK+SFi7s2442LzQnDQ7GkxaxPk f8+onW0o1nBiufDvaSWv0uMYhdvKofuYNPEz0SBZvDi5AS3tOuinp6DvIx8DMWCp 7Xh60g0cdqD21ix18XmyHLwIoRTEWwltI3U/HW/p7TNm9KmEGDjFZkM/f8S5RDs6 +qpVEf6aRWDypMC5TZ2P02ApErl75Ws6ndSwnYx0ivxkCKix2MKL8dHaczD2rkuH C4TdAehIRMydB2i3gBmrVRRjTQgYgF687ims1H0P9V92VI/tYwPrlvyHuIw6q6mY gnxjndgsl8q/RkVVc+brL/k= =jQzZ -----END PGP SIGNATURE----- Merge tag 'peci-next-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/iwi/linux into char-misc-next Iwona writes: Update peci-next for v6.10-rc1 - Move peci_bus_type, peci_controller_type and peci_device_type to be constant.
This commit is contained in:
commit
84e79a7f63
@ -25,7 +25,7 @@ static void peci_controller_dev_release(struct device *dev)
|
||||
kfree(controller);
|
||||
}
|
||||
|
||||
struct device_type peci_controller_type = {
|
||||
const struct device_type peci_controller_type = {
|
||||
.release = peci_controller_dev_release,
|
||||
};
|
||||
|
||||
@ -201,7 +201,7 @@ static void peci_bus_device_remove(struct device *dev)
|
||||
driver->remove(device);
|
||||
}
|
||||
|
||||
struct bus_type peci_bus_type = {
|
||||
const struct bus_type peci_bus_type = {
|
||||
.name = "peci",
|
||||
.match = peci_bus_device_match,
|
||||
.probe = peci_bus_device_probe,
|
||||
|
@ -246,7 +246,7 @@ static void peci_device_release(struct device *dev)
|
||||
kfree(device);
|
||||
}
|
||||
|
||||
struct device_type peci_device_type = {
|
||||
const struct device_type peci_device_type = {
|
||||
.groups = peci_device_groups,
|
||||
.release = peci_device_release,
|
||||
};
|
||||
|
@ -75,13 +75,13 @@ struct peci_device_id {
|
||||
u8 model;
|
||||
};
|
||||
|
||||
extern struct device_type peci_device_type;
|
||||
extern const struct device_type peci_device_type;
|
||||
extern const struct attribute_group *peci_device_groups[];
|
||||
|
||||
int peci_device_create(struct peci_controller *controller, u8 addr);
|
||||
void peci_device_destroy(struct peci_device *device);
|
||||
|
||||
extern struct bus_type peci_bus_type;
|
||||
extern const struct bus_type peci_bus_type;
|
||||
extern const struct attribute_group *peci_bus_groups[];
|
||||
|
||||
/**
|
||||
@ -129,7 +129,7 @@ void peci_driver_unregister(struct peci_driver *driver);
|
||||
#define module_peci_driver(__peci_driver) \
|
||||
module_driver(__peci_driver, peci_driver_register, peci_driver_unregister)
|
||||
|
||||
extern struct device_type peci_controller_type;
|
||||
extern const struct device_type peci_controller_type;
|
||||
|
||||
int peci_controller_scan_devices(struct peci_controller *controller);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user