Return-path: Received: from wf-out-1314.google.com ([209.85.200.172]:46147 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbYE2VrJ (ORCPT ); Thu, 29 May 2008 17:47:09 -0400 Received: by wf-out-1314.google.com with SMTP id 27so3105086wfd.4 for ; Thu, 29 May 2008 14:47:08 -0700 (PDT) Subject: Re: [PATCH 15/37] wireless: use get/put_endian helpers From: Harvey Harrison To: Johannes Berg Cc: Andrew Morton , linux-arch , linux-wireless , John Linville In-Reply-To: <1212097411.10109.3.camel@johannes.berg> References: <1212092308.28403.117.camel@brick> (sfid-20080529_221900_617991_210BEC75) <1212096681.10109.0.camel@johannes.berg> <1212096945.28403.141.camel@brick> (sfid-20080529_233551_020981_7B2BB967) <1212097411.10109.3.camel@johannes.berg> Content-Type: text/plain Date: Thu, 29 May 2008 14:47:05 -0700 Message-Id: <1212097625.28403.144.camel@brick> (sfid-20080529_234712_143991_55B18125) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2008-05-29 at 23:43 +0200, Johannes Berg wrote: > On Thu, 2008-05-29 at 14:35 -0700, Harvey Harrison wrote: > > On Thu, 2008-05-29 at 23:31 +0200, Johannes Berg wrote: > > > > - ADM8211_CSR_WRITE(BSSID0, le32_to_cpu(*(__le32 *)bssid)); > > > > + ADM8211_CSR_WRITE(BSSID0, get_le32((__le32 *)bssid)); > > > > > > Maybe I'm stupid, but isn't this the same as le32_to_cpup? Or does > > > get_le32 handle unaligned values? > > > You're not stupid, but there is a new put_le32 as well that takes > > aligned values similar to the put_unaligned_le32, so get_le32 was > > added to have an analog to get_unaligned_le32 as well. > > So this is just to make the API "complete"? Are we removing le32_to_cpup > and the associated API then? > > johannes At the end of the series, there are no more users of the {endian}_to_cpup family left, so they could be removed, but I did not include that in this set. It seems as if infiniband and some areas of net/ were the only places that knew of the p version as there were lots of le16_to_cpu(*(__le16 *)ptr) around the tree. Harvey