From 611fb044490ab89c83c3af4a61fe865c79f16bbe Mon Sep 17 00:00:00 2001 From: Frank Benkert Date: Wed, 9 Mar 2016 12:44:56 -0600 Subject: [PATCH] BlockToCharDev: increase sectorsize to 32 bit --- arch | 2 +- drivers/bch/bch.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch b/arch index 0147de5a248..9a31f264ec7 160000 --- a/arch +++ b/arch @@ -1 +1 @@ -Subproject commit 0147de5a248d7ba7be9d5dbd7addbe4aeae6088c +Subproject commit 9a31f264ec72f07d40fb3b79f77ca72869ca8eee diff --git a/drivers/bch/bch.h b/drivers/bch/bch.h index 5463518349e..157cf06133b 100644 --- a/drivers/bch/bch.h +++ b/drivers/bch/bch.h @@ -62,10 +62,10 @@ struct bchlib_s { FAR struct inode *inode; /* I-node of the block driver */ - sem_t sem; /* For atomic accesses to this structure */ + uint32_t sectsize; /* The size of one sector on the device */ size_t nsectors; /* Number of sectors supported by the device */ size_t sector; /* The current sector in the buffer */ - uint16_t sectsize; /* The size of one sector on the device */ + sem_t sem; /* For atomic accesses to this structure */ uint8_t refs; /* Number of references */ bool dirty; /* true: Data has been written to the buffer */ bool readonly; /* true: Only read operations are supported */