Skip to content

Commit b565d13

Browse files
committed
libmtdac/mtd.h: Clarify some enum values
In the mtd_ep_api enum make it clear that the _ITSA and _VAT values are meant to represent bits. Signed-off-by: Andrew Clayton <ac@sigsegv.uk>
1 parent 49a8c88 commit b565d13

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/libmtdac/mtd.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,19 +376,19 @@ enum mtd_scope {
376376
};
377377

378378
enum mtd_ep_api {
379-
MTD_EP_API_ITSA = 0,
380-
MTD_EP_API_VAT = 1,
379+
MTD_EP_API_ITSA = 0x0,
380+
MTD_EP_API_VAT = 0x1,
381381

382382
/*
383383
* Special value to tell we are adding more API
384384
* OAuths and _not_ to reset the oauth.json file.
385385
*
386386
* This can be bitwise OR'd with any of the above.
387387
*/
388-
MTD_EP_API_ADD = (1 << 29),
388+
MTD_EP_API_ADD = (1 << 29),
389389

390390
/* Only used internally */
391-
MTD_EP_API_NULL = (1 << 30)
391+
MTD_EP_API_NULL = (1 << 30)
392392
};
393393

394394
enum mtd_data_src_type {

0 commit comments

Comments
 (0)