Re: [PATCH v1] spmi: Drop struct spmi_device_id
From: Uwe Kleine-König
Date: Wed Nov 25 2026 - 12:50:25 EST
On Wed, Nov 25, 2026 at 12:21:52PM +0100, Uwe Kleine-König wrote:
> This was introduced by commit 5a86bf343976 ("spmi: Linux driver
> framework for SPMI") in 2014 for Linux 3.15 and already then was unused
> and no user was added since then.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>
> ---
> include/linux/device-id/spmi.h | 17 -----------------
> include/linux/mod_devicetable.h | 1 -
> 2 files changed, 18 deletions(-)
> delete mode 100644 include/linux/device-id/spmi.h
>
> diff --git a/include/linux/device-id/spmi.h b/include/linux/device-id/spmi.h
> deleted file mode 100644
> index a821c42cfc9a..000000000000
> --- a/include/linux/device-id/spmi.h
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -/* SPDX-License-Identifier: GPL-2.0 */
> -#ifndef LINUX_DEVICE_ID_SPMI_H
> -#define LINUX_DEVICE_ID_SPMI_H
> -
> -#ifdef __KERNEL__
> -typedef unsigned long kernel_ulong_t;
> -#endif
> -
> -#define SPMI_NAME_SIZE 32
> -#define SPMI_MODULE_PREFIX "spmi:"
> -
> -struct spmi_device_id {
> - char name[SPMI_NAME_SIZE];
> - kernel_ulong_t driver_data; /* Data private to the driver */
> -};
> -
> -#endif /* ifndef LINUX_DEVICE_ID_SPMI_H */
With further build tests done SPMI_NAME_SIZE is in use however. So for
now please disregard this patch, I guess I'll move it to another header
but will investigate the situation first.
Sorry
Uwe
Attachment:
signature.asc
Description: PGP signature