/* Set the parent for the jack input device in the device tree. This function is only valid prior to registration of the jack. If no parent is configured then the parent device will be the sound card.  */
void snd_jack_set_parent(struct snd_jack *jack, struct device *parent)
/* Set the parent for the jack input device in the device tree. This function is only valid prior to registration of the jack. If no parent is configured then the parent device will be the sound card.  */
void snd_jack_set_parent(struct snd_jack *jack, struct device *parent)
{
	WARN_ON(jack->registered);
	jack->input_dev->dev.parent = parent;
}