From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752445AbbJGLDK (ORCPT ); Wed, 7 Oct 2015 07:03:10 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:35492 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593AbbJGLDI (ORCPT ); Wed, 7 Oct 2015 07:03:08 -0400 Date: Wed, 7 Oct 2015 16:33:02 +0530 From: Viresh Kumar To: Arnd Bergmann , Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Stephen Boyd , Bartlomiej Zolnierkiewicz , Nishanth Menon , Dmitry Torokhov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] PM / OPP: fix debugfs files for 64-bit Message-ID: <20151007110302.GD9892@linux> References: <5706174.BUsqiXljxZ@wuerfel> <20151007105911.GC9892@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151007105911.GC9892@linux> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07-10-15, 16:29, Viresh Kumar wrote: > What about adding something like debugfs_create_unsigned_long() for > such cases? And that can be as simple (or ugly, not sure if its buggy) as: debugfs_create_unsigned_long() { if (sizeof(unsigned long) == sizeof(u32)) return debugfs_create_u32(); if (sizeof(unsigned long) == sizeof(u64)) return debugfs_create_u64(); return -EINVAL; } -- viresh