Unverified Commit bdf0ea9d authored by Hans de Goede's avatar Hans de Goede Committed by Ilpo Järvinen
Browse files

platform/x86: dell-smo8800: Move SMO88xx acpi_device_ids to dell-smo8800-ids.h



Move the SMO88xx acpi_device_ids to a new dell-smo8800-ids.h header,
so that these can be shared with the new dell-lis3lv02d code.

Reviewed-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241209183557.7560-2-hdegoede@redhat.com


Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 3bc01839
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  ACPI SMO88XX lis3lv02d freefall / accelerometer device-ids.
 *
 *  Copyright (C) 2012 Sonal Santan <sonal.santan@gmail.com>
 *  Copyright (C) 2014 Pali Rohár <pali@kernel.org>
 */
#ifndef _DELL_SMO8800_IDS_H_
#define _DELL_SMO8800_IDS_H_

#include <linux/mod_devicetable.h>
#include <linux/module.h>

static const struct acpi_device_id smo8800_ids[] = {
	{ "SMO8800" },
	{ "SMO8801" },
	{ "SMO8810" },
	{ "SMO8811" },
	{ "SMO8820" },
	{ "SMO8821" },
	{ "SMO8830" },
	{ "SMO8831" },
	{ }
};
MODULE_DEVICE_TABLE(acpi, smo8800_ids);

#endif
+1 −15
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include "dell-smo8800-ids.h"

struct smo8800_device {
	u32 irq;                     /* acpi device irq */
@@ -163,20 +163,6 @@ static void smo8800_remove(struct platform_device *device)
	dev_dbg(&device->dev, "device /dev/freefall unregistered\n");
}

/* NOTE: Keep this list in sync with drivers/i2c/busses/i2c-i801.c */
static const struct acpi_device_id smo8800_ids[] = {
	{ "SMO8800", 0 },
	{ "SMO8801", 0 },
	{ "SMO8810", 0 },
	{ "SMO8811", 0 },
	{ "SMO8820", 0 },
	{ "SMO8821", 0 },
	{ "SMO8830", 0 },
	{ "SMO8831", 0 },
	{ "", 0 },
};
MODULE_DEVICE_TABLE(acpi, smo8800_ids);

static struct platform_driver smo8800_driver = {
	.probe = smo8800_probe,
	.remove = smo8800_remove,