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

Commit b25f7781 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: ak4554: add DT support



Support for loading the ak4554 codec module via devicetree.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent a2911cdb
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
AK4554 ADC/DAC

Required properties:

  - compatible : "asahi-kasei,ak4554"

Example:

ak4554-adc-dac {
	compatible = "asahi-kasei,ak4554";
};
+7 −0
Original line number Diff line number Diff line
@@ -64,10 +64,17 @@ static int ak4554_soc_remove(struct platform_device *pdev)
	return 0;
}

static struct of_device_id ak4554_of_match[] = {
	{ .compatible = "asahi-kasei,ak4554" },
	{},
};
MODULE_DEVICE_TABLE(of, ak4554_of_match);

static struct platform_driver ak4554_driver = {
	.driver = {
		.name = "ak4554-adc-dac",
		.owner = THIS_MODULE,
		.of_match_table = ak4554_of_match,
	},
	.probe	= ak4554_soc_probe,
	.remove	= ak4554_soc_remove,