Re: [PATCH 1/2] pwm: sysfs: Set class on pwm devices

From: Greg Kroah-Hartman
Date: Fri Oct 02 2020 - 08:44:13 EST


On Fri, Oct 02, 2020 at 02:30:47PM +0200, poeschel@xxxxxxxxxxx wrote:
> + pwm_prop[0] = kasprintf(GFP_KERNEL, "EXPORT=%s",
> + export->child.kobj.name);

Nit, you should use dev_name() here instead of trying to get the raw
kobject name.


thanks,

greg k-h