change struct type for block and char device