History

lib/bch: Rework a little bit the exported function names

There are four exported functions, all suffixed by _bch, which is clearly not the norm. Let's rename them by prefixing them with bch_ instead. This is a mechanical change: init_bch -> bch_init free_bch -> bch_free encode_bch -> bch_encode decode_bch -> bch_decode

Miquel Raynal committed 6 years ago

Commit c8ae3f71 parent f0689804 files · +46 −46Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/bch.h+4−4
@@ -53,14 +53,14 @@ struct bch_control { · 52 unmodified lines
5353 struct gf_poly *poly_2t[4];
5454 };
5555
56−struct bch_control *init_bch(int m, int t, unsigned int prim_poly);
56+struct bch_control *bch_init(int m, int t, unsigned int prim_poly);
5757
58−void free_bch(struct bch_control *bch);
58+void bch_free(struct bch_control *bch);
5959
60−void encode_bch(struct bch_control *bch, const uint8_t *data,
60+void bch_encode(struct bch_control *bch, const uint8_t *data,
6161 unsigned int len, uint8_t *ecc);
6262
63−int decode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len,
63+int bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len,
6464 const uint8_t *recv_ecc, const uint8_t *calc_ecc,
6565 const unsigned int *syn, unsigned int *errloc);
6666