Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c27087e authored by Rohit Ainapure's avatar Rohit Ainapure Committed by Mark Brown
Browse files

ASoC: max98357a: Add ACPI ID for Maxim



Adding ACPI ID "MX98357A" for the MAXIM 98357A amp.

Signed-off-by: default avatarRohit Ainapure <rohit.m.ainapure@intel.com>
Signed-off-by: default avatarFang, Yang A <yang.a.fang@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8005c49d
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@
 * max98357a.c -- MAX98357A ALSA SoC Codec driver
 * max98357a.c -- MAX98357A ALSA SoC Codec driver
 */
 */


#include <linux/acpi.h>
#include <linux/device.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/gpio.h>
@@ -123,10 +124,19 @@ static const struct of_device_id max98357a_device_id[] = {
MODULE_DEVICE_TABLE(of, max98357a_device_id);
MODULE_DEVICE_TABLE(of, max98357a_device_id);
#endif
#endif


#ifdef CONFIG_ACPI
static const struct acpi_device_id max98357a_acpi_match[] = {
	{ "MX98357A", 0 },
	{},
};
MODULE_DEVICE_TABLE(acpi, max98357a_acpi_match);
#endif

static struct platform_driver max98357a_platform_driver = {
static struct platform_driver max98357a_platform_driver = {
	.driver = {
	.driver = {
		.name = "max98357a",
		.name = "max98357a",
		.of_match_table = of_match_ptr(max98357a_device_id),
		.of_match_table = of_match_ptr(max98357a_device_id),
		.acpi_match_table = ACPI_PTR(max98357a_acpi_match),
	},
	},
	.probe	= max98357a_platform_probe,
	.probe	= max98357a_platform_probe,
	.remove = max98357a_platform_remove,
	.remove = max98357a_platform_remove,