aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:11 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-01-25 16:17:11 -0500
commit6a2144146aa2e0eb60e48ba73ac0e1c51346edf6 (patch)
tree2fef7223ef38b8bd35b16b4006f6504370eb72c8
parent918337a85366ad0f1c4c08ebe45e4fb1e3a3c15f (diff)
ide: CPU endianness doesn't matter for special_t
special_t is used only internally by the IDE subsystem (it isn't related to hardware registers and isn't exported to the user-space). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--include/linux/ide.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index e1f652c6440c..c6ffc2028fb5 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -306,23 +306,12 @@ static inline void ide_init_hwif_ports(hw_regs_t *hw,
306typedef union { 306typedef union {
307 unsigned all : 8; 307 unsigned all : 8;
308 struct { 308 struct {
309#if defined(__LITTLE_ENDIAN_BITFIELD)
310 unsigned set_geometry : 1; 309 unsigned set_geometry : 1;
311 unsigned recalibrate : 1; 310 unsigned recalibrate : 1;
312 unsigned set_multmode : 1; 311 unsigned set_multmode : 1;
313 unsigned set_tune : 1; 312 unsigned set_tune : 1;
314 unsigned serviced : 1; 313 unsigned serviced : 1;
315 unsigned reserved : 3; 314 unsigned reserved : 3;
316#elif defined(__BIG_ENDIAN_BITFIELD)
317 unsigned reserved : 3;
318 unsigned serviced : 1;
319 unsigned set_tune : 1;
320 unsigned set_multmode : 1;
321 unsigned recalibrate : 1;
322 unsigned set_geometry : 1;
323#else
324#error "Please fix <asm/byteorder.h>"
325#endif
326 } b; 315 } b;
327} special_t; 316} special_t;
328 317