flash/nor: Use proper data types in driver API