From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F38D8C4363D for ; Fri, 2 Oct 2020 12:44:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BFA4C206CD for ; Fri, 2 Oct 2020 12:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601642651; bh=c+DRCXODZXiAWU+WmseGXdjZpDoVuIsImezop5VomhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=TwliuPpwVRzTRTGySK8vDki/3BhJ6VS+1Ci16dzEVPv3aclDqV4RzDcJsx97fzvLW EDTIch7WlFfoOYi14FCE9KMt2NXoVnR1PPUer81WQqLqlrxm3BKUrT5ZyJus/9Pr2e GFzmeNe9dezgPwZZjK5fHvBshgAs1e5NEEurs26c= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387823AbgJBMoL (ORCPT ); Fri, 2 Oct 2020 08:44:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:52180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgJBMoL (ORCPT ); Fri, 2 Oct 2020 08:44:11 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1803920672; Fri, 2 Oct 2020 12:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601642649; bh=c+DRCXODZXiAWU+WmseGXdjZpDoVuIsImezop5VomhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kd9faxk4NO38dpz/1ZxWf8sYt68XNWhNZ5PeDY7RBVfWLoOY4iNGwjHanbjpsCuV4 FoTh+UHRbHk/6W8Ky1SBbQAFvr/Dfpu+MGR2n3gk7GsfRZylqSmdgmAj7Kj7z9mgRD wPV+V7C4ys+fPMCXWdtoGyj8E/bb4gREv/2KQO9I= Date: Fri, 2 Oct 2020 14:44:07 +0200 From: Greg Kroah-Hartman To: poeschel@lemonage.de Cc: Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lee Jones , "open list:PWM SUBSYSTEM" , open list Subject: Re: [PATCH 1/2] pwm: sysfs: Set class on pwm devices Message-ID: <20201002124407.GA3348424@kroah.com> References: <20201002123048.3073128-1-poeschel@lemonage.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201002123048.3073128-1-poeschel@lemonage.de> Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org On Fri, Oct 02, 2020 at 02:30:47PM +0200, poeschel@lemonage.de 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