From: Bartosz Golaszewski Date: Mon, 2 Dec 2024 09:49:03 +0000 (+0100) Subject: soc: qcom: rmtfs: constify rmtfs_class X-Git-Tag: v6.14-rc1~102^2~3^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb9fc0f32f9b4e8b7984c276c1ed6f61d39ef630;p=thirdparty%2Fkernel%2Flinux.git soc: qcom: rmtfs: constify rmtfs_class The rmtfs class object is never modified and can be made constant. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski Link: https://lore.kernel.org/r/20241202094903.18388-2-brgl@bgdev.pl Signed-off-by: Bjorn Andersson --- diff --git a/drivers/soc/qcom/rmtfs_mem.c b/drivers/soc/qcom/rmtfs_mem.c index 33603b8fd8f38..1b32469f27896 100644 --- a/drivers/soc/qcom/rmtfs_mem.c +++ b/drivers/soc/qcom/rmtfs_mem.c @@ -125,7 +125,7 @@ static int qcom_rmtfs_mem_release(struct inode *inode, struct file *filp) return 0; } -static struct class rmtfs_class = { +static const struct class rmtfs_class = { .name = "rmtfs", };