Subject: Re: MPC8349ea Random Device Generator driver

From: Timur Tabi <[email-masked]>
Date: Thu, 07 Jun 2007 09:23:35 -0500

Olof Johansson wrote:
> On Wed, Jun 06, 2007 at 05:32:19PM -0500, Timur Tabi wrote:
>> Olof Johansson wrote:
>>
>>>  - you can never assign a __le16 type to any other integer type or any 
>>>    other bitwise type. You'd get a warnign about incompatible types. Makes 
>>>    sense, no?
>> Then why do the in_be functions return an unsigned int instead of a __be type?  Isn't that 
>> effectively removing the endian-ness from the type?
> 
> Because they read a big endian register and returns the contents in the
> native byte order for the machine.

In other words, the in_le16() function exists so that we can "assign a __le16 type to any 
other integer type or any other bitwise type."

-- 
Timur Tabi
Linux Kernel Developer @ Freescale