From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756237AbZHFQvn (ORCPT ); Thu, 6 Aug 2009 12:51:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753617AbZHFQvm (ORCPT ); Thu, 6 Aug 2009 12:51:42 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:26270 "EHLO g1t0027.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753275AbZHFQvm (ORCPT ); Thu, 6 Aug 2009 12:51:42 -0400 Subject: Re: [RFC PATCH V2 2/2] introduce ACPI ALS device driver From: Bjorn Helgaas To: Zhang Rui Cc: linux-acpi , Linux Kernel Mailing List , Pavel Machek , Greg KH , Richard Purdie , Matthew Wilcox , Len Brown , "Valdis.Kletnieks@vt.edu" In-Reply-To: <1249571361.457.21.camel@dc7800.home> References: <1249547500.2670.500.camel@rzhang-dt> <1249571361.457.21.camel@dc7800.home> Content-Type: text/plain Date: Thu, 06 Aug 2009 10:50:58 -0600 Message-Id: <1249577458.457.40.camel@dc7800.home> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2009-08-06 at 09:09 -0600, Bjorn Helgaas wrote: > > + status = acpi_get_name(als->device->handle, ACPI_FULL_PATHNAME, &name); > > + if (ACPI_FAILURE(status)) { > > + result = -ENODEV; > > + goto end; > > + } > > + > > + als->als_sys = als_device_register(&acpi_als_ops, name.pointer, als); > > I don't think we should expose the ACPI pathname of the device here. > If we really need something in sysfs, I think some kind of link to the > underlying device would be better. What I mean to say here is that if we need a connection to the ACPI pathname (and we might, especially for debugging), I think the connection should be between "ACPI0008:00" and the pathname, not between something in /sys/class/als/... and the pathname. Then you could have a link under /sys/class/als/... to the ACPI0008:00 stuff. Bjorn