mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ARM: pxa: remove use of symbol_get()
The spitz board file uses the obscure symbol_get() function to optionally call a function from sharpsl_pm.c if that is built. However, the two files are always built together these days, and have been for a long time, so this can be changed to a normal function call. Link: https://lore.kernel.org/lkml/20230731162639.GA9441@lst.de/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
This commit is contained in:
parent
4b49df654c
commit
0faa29c420
2 changed files with 1 additions and 15 deletions
|
@ -216,8 +216,6 @@ void sharpsl_battery_kick(void)
|
||||||
{
|
{
|
||||||
schedule_delayed_work(&sharpsl_bat, msecs_to_jiffies(125));
|
schedule_delayed_work(&sharpsl_bat, msecs_to_jiffies(125));
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(sharpsl_battery_kick);
|
|
||||||
|
|
||||||
|
|
||||||
static void sharpsl_battery_thread(struct work_struct *private_)
|
static void sharpsl_battery_thread(struct work_struct *private_)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h> /* symbol_get ; symbol_put */
|
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/gpio_keys.h>
|
#include <linux/gpio_keys.h>
|
||||||
|
@ -518,17 +517,6 @@ static struct gpiod_lookup_table spitz_ads7846_gpio_table = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void spitz_bl_kick_battery(void)
|
|
||||||
{
|
|
||||||
void (*kick_batt)(void);
|
|
||||||
|
|
||||||
kick_batt = symbol_get(sharpsl_battery_kick);
|
|
||||||
if (kick_batt) {
|
|
||||||
kick_batt();
|
|
||||||
symbol_put(sharpsl_battery_kick);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct gpiod_lookup_table spitz_lcdcon_gpio_table = {
|
static struct gpiod_lookup_table spitz_lcdcon_gpio_table = {
|
||||||
.dev_id = "spi2.1",
|
.dev_id = "spi2.1",
|
||||||
.table = {
|
.table = {
|
||||||
|
@ -556,7 +544,7 @@ static struct corgi_lcd_platform_data spitz_lcdcon_info = {
|
||||||
.max_intensity = 0x2f,
|
.max_intensity = 0x2f,
|
||||||
.default_intensity = 0x1f,
|
.default_intensity = 0x1f,
|
||||||
.limit_mask = 0x0b,
|
.limit_mask = 0x0b,
|
||||||
.kick_battery = spitz_bl_kick_battery,
|
.kick_battery = sharpsl_battery_kick,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct spi_board_info spitz_spi_devices[] = {
|
static struct spi_board_info spitz_spi_devices[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue