From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932188AbWHBTvZ (ORCPT ); Wed, 2 Aug 2006 15:51:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932171AbWHBTvZ (ORCPT ); Wed, 2 Aug 2006 15:51:25 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:61153 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S932170AbWHBTvY (ORCPT ); Wed, 2 Aug 2006 15:51:24 -0400 Date: Wed, 2 Aug 2006 21:51:07 +0200 From: Pavel Machek To: Jean Delvare Cc: Greg KH , lm-sensors@lm-sensors.org, Shem Multinymous , "Brown, Len" , Matthew Garrett , vojtech@suse.cz, kernel list , linux-thinkpad@linux-thinkpad.org, linux-acpi@vger.kernel.org Subject: Re: Generic battery interface Message-ID: <20060802195107.GB8124@elf.ucw.cz> References: <20060727221632.GE3797@elf.ucw.cz> <41840b750607271556n1901af3by2e4d046d68abcb94@mail.gmail.com> <20060727230801.GA30619@kroah.com> <20060727232426.GI3797@elf.ucw.cz> <20060730142943.2537124e.khali@linux-fr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060730142943.2537124e.khali@linux-fr.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > Actually I do not see "hwmon infrastructure" to exist. Every driver > > just uses sysfs directly. I'm not sure that the best option -- > > "input-like" infrastructure can make drivers even shorter -- but > > perhaps just directly using sysfs is best for simple task like a battery? > > > > Jean, any ideas? > > I guess we never felt any need for an "infrastructure", else we would > have created it. I have no idea what the "input infrastructure" looks > like so I can't compare. If you have something to propose which would > refactor some code amongst the hardware monitoring drivers or would > otherwise makes thing better, speak up :) I'm not sure if it is practical for hwmon, but having report_voltage(x,y) is probably easier than coding sysfs stuff by hand. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html