Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759024Ab2ECX0W (ORCPT ); Thu, 3 May 2012 19:26:22 -0400 Received: from mail-ee0-f74.google.com ([74.125.83.74]:65428 "EHLO mail-ee0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758862Ab2ECX0V (ORCPT ); Thu, 3 May 2012 19:26:21 -0400 To: gregkh@linuxfoundation.org Subject: [PATCH] driver-core: fix DEVICE_INT_ATTR to use correct show/store functions Cc: linux-kernel@vger.kernel.org Message-Id: <20120503231903.02D1D8095E@fiasco.mtv.corp.google.com> Date: Thu, 3 May 2012 16:19:02 -0700 (PDT) From: md@google.com (Michael Davidson) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1039 Lines: 24 [PATCH] driver-core: fix DEVICE_INT_ATTR to use correct show/store functions DEVICE_INT_ATTR() should use device_show_int() and device_store_int() not device_show_ulong() and device_store_ulong() Signed-off-by: Michael Davidson --- --- a/include/linux/device.h +++ b/include/linux/device.h @@ -508,7 +508,7 @@ ssize_t device_store_int(struct device * { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } #define DEVICE_INT_ATTR(_name, _mode, _var) \ struct dev_ext_attribute dev_attr_##_name = \ - { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } + { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) } extern int device_create_file(struct device *device, const struct device_attribute *entry); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/