Skip to content

Commit

Permalink
drivers: Remove downstream SenseHAT core and joystick drivers
Browse files Browse the repository at this point in the history
Parts of a SenseHAT driver have been submitted upstream using the
simple-i2c-mfd framework. The joystick driver has been merged.

It's been noted that there are several issues with the downstream
joystick and core drivers, so remove these in favour of the upstream
approach, and fix up the FB driver to match.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
  • Loading branch information
6by9 authored and pelwell committed Sep 24, 2024
1 parent a958e15 commit e698db3
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 411 deletions.
8 changes: 0 additions & 8 deletions drivers/input/joystick/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,4 @@ config JOYSTICK_SENSEHAT
To compile this driver as a module, choose M here: the
module will be called sensehat_joystick.

config JOYSTICK_RPISENSE
tristate "Raspberry Pi Sense HAT joystick"
depends on GPIOLIB && INPUT
select MFD_RPISENSE_CORE

help
This is the joystick driver for the Raspberry Pi Sense HAT

endif
1 change: 0 additions & 1 deletion drivers/input/joystick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ obj-$(CONFIG_JOYSTICK_WARRIOR) += warrior.o
obj-$(CONFIG_JOYSTICK_WALKERA0701) += walkera0701.o
obj-$(CONFIG_JOYSTICK_XPAD) += xpad.o
obj-$(CONFIG_JOYSTICK_ZHENHUA) += zhenhua.o
obj-$(CONFIG_JOYSTICK_RPISENSE) += rpisense-js.o
153 changes: 0 additions & 153 deletions drivers/input/joystick/rpisense-js.c

This file was deleted.

8 changes: 0 additions & 8 deletions drivers/mfd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ config MFD_CORE
select IRQ_DOMAIN
default n

config MFD_RPISENSE_CORE
tristate "Raspberry Pi Sense HAT core functions"
depends on I2C
select MFD_CORE
help
This is the core driver for the Raspberry Pi Sense HAT. This provides
the necessary functions to communicate with the hardware.

config MFD_CS5535
tristate "AMD CS5535 and CS5536 southbridge core functions"
select MFD_CORE
Expand Down
1 change: 0 additions & 1 deletion drivers/mfd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ obj-$(CONFIG_MFD_STMFX) += stmfx.o
obj-$(CONFIG_MFD_KHADAS_MCU) += khadas-mcu.o
obj-$(CONFIG_MFD_ACER_A500_EC) += acer-ec-a500.o
obj-$(CONFIG_MFD_QCOM_PM8008) += qcom-pm8008.o
obj-$(CONFIG_MFD_RPISENSE_CORE) += rpisense-core.o

obj-$(CONFIG_SGI_MFD_IOC3) += ioc3.o
obj-$(CONFIG_MFD_SIMPLE_MFD_I2C) += simple-mfd-i2c.o
Expand Down
163 changes: 0 additions & 163 deletions drivers/mfd/rpisense-core.c

This file was deleted.

4 changes: 2 additions & 2 deletions drivers/video/fbdev/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1967,8 +1967,8 @@ config FB_SM712

config FB_RPISENSE
tristate "Raspberry Pi Sense HAT framebuffer"
depends on FB
select MFD_RPISENSE_CORE
depends on FB && I2C
select MFD_SIMPLE_MFD_I2C
select FB_SYS_FOPS
select FB_SYS_FILLRECT
select FB_SYS_COPYAREA
Expand Down
Loading

0 comments on commit e698db3

Please sign in to comment.