Commit 5abdb156bb5c2685744be3620c4bdb1875bd81ce

Authored by Siarhei Siamashka
Committed by Hans de Goede
1 parent 47e3501a76

sunxi: mmc: Add 'sunxi_' prefix to the static functions

This results in a much more readable callgraph, because now they
can't be confused with the function having exactly the same name
in the generic mmc code.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff

drivers/mmc/sunxi_mmc.c
... ... @@ -215,7 +215,7 @@
215 215 return 0;
216 216 }
217 217  
218   -static void mmc_set_ios(struct mmc *mmc)
  218 +static void sunxi_mmc_set_ios(struct mmc *mmc)
219 219 {
220 220 struct sunxi_mmc_host *mmchost = mmc->priv;
221 221  
... ... @@ -237,7 +237,7 @@
237 237 writel(0x0, &mmchost->reg->width);
238 238 }
239 239  
240   -static int mmc_core_init(struct mmc *mmc)
  240 +static int sunxi_mmc_core_init(struct mmc *mmc)
241 241 {
242 242 struct sunxi_mmc_host *mmchost = mmc->priv;
243 243  
... ... @@ -298,8 +298,8 @@
298 298 return 0;
299 299 }
300 300  
301   -static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
302   - struct mmc_data *data)
  301 +static int sunxi_mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
  302 + struct mmc_data *data)
303 303 {
304 304 struct sunxi_mmc_host *mmchost = mmc->priv;
305 305 unsigned int cmdval = SUNXI_MMC_CMD_START;
... ... @@ -432,9 +432,9 @@
432 432 }
433 433  
434 434 static const struct mmc_ops sunxi_mmc_ops = {
435   - .send_cmd = mmc_send_cmd,
436   - .set_ios = mmc_set_ios,
437   - .init = mmc_core_init,
  435 + .send_cmd = sunxi_mmc_send_cmd,
  436 + .set_ios = sunxi_mmc_set_ios,
  437 + .init = sunxi_mmc_core_init,
438 438 .getcd = sunxi_mmc_getcd,
439 439 };
440 440