Re: [PATCH v3] Input: rename INPUT_PROP_HAPTIC_TOUCHPAD to INPUT_PROP_PRESSUREPAD
From: Jiri Kosina
Date: Mon Dec 15 2025 - 12:20:03 EST
On Mon, 15 Dec 2025, Dmitry V. Levin wrote:
> > diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
> > index 8ba48590bd2c..d21172c6a266 100644
> > --- a/include/uapi/linux/input-event-codes.h
> > +++ b/include/uapi/linux/input-event-codes.h
> > @@ -27,7 +27,7 @@
> > #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */
> > #define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */
> > #define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */
> > -#define INPUT_PROP_HAPTIC_TOUCHPAD 0x07 /* is a haptic touchpad */
> > +#define INPUT_PROP_PRESSUREPAD 0x07 /* pressure triggers clicks */
> >
> > #define INPUT_PROP_MAX 0x1f
> > #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)
>
> When you rename UAPI constants, please don't forget to retain old names,
> otherwise there is a high chance you'll break userspace.
> This time you've broken the build of strace.
In general I'd agree, but in this particular case, both commits happened
within the development window (6.18-rc1 vs 6.18-rc7).
"No breaking of userspace" is certainly a hard (and good) rule between
actual existing version releases, but I hope we're not expected to adhere
to it in between -rcs during a development cycle.
Thanks,
--
Jiri Kosina
SUSE Labs