mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-11-01 09:13:37 +00:00 
			
		
		
		
	mmc: core: Convert mmc_wait_for_app_cmd() to static
mmc_wait_for_app_cmd() is an internal function for sd_ops.c, thus let's drop the unnecessary export and turn it into static function. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
		
							parent
							
								
									f0c8234cb9
								
							
						
					
					
						commit
						9a4b869b0c
					
				
					 2 changed files with 1 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -52,20 +52,7 @@ int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card)
 | 
			
		|||
}
 | 
			
		||||
EXPORT_SYMBOL_GPL(mmc_app_cmd);
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *	mmc_wait_for_app_cmd - start an application command and wait for
 | 
			
		||||
 			       completion
 | 
			
		||||
 *	@host: MMC host to start command
 | 
			
		||||
 *	@card: Card to send MMC_APP_CMD to
 | 
			
		||||
 *	@cmd: MMC command to start
 | 
			
		||||
 *	@retries: maximum number of retries
 | 
			
		||||
 *
 | 
			
		||||
 *	Sends a MMC_APP_CMD, checks the card response, sends the command
 | 
			
		||||
 *	in the parameter and waits for it to complete. Return any error
 | 
			
		||||
 *	that occurred while the command was executing.  Do not attempt to
 | 
			
		||||
 *	parse the response.
 | 
			
		||||
 */
 | 
			
		||||
int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
 | 
			
		||||
static int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
 | 
			
		||||
	struct mmc_command *cmd, int retries)
 | 
			
		||||
{
 | 
			
		||||
	struct mmc_request mrq = {};
 | 
			
		||||
| 
						 | 
				
			
			@ -116,8 +103,6 @@ int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
 | 
			
		|||
	return err;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
EXPORT_SYMBOL(mmc_wait_for_app_cmd);
 | 
			
		||||
 | 
			
		||||
int mmc_app_set_bus_width(struct mmc_card *card, int width)
 | 
			
		||||
{
 | 
			
		||||
	struct mmc_command cmd = {};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,6 @@
 | 
			
		|||
 | 
			
		||||
struct mmc_card;
 | 
			
		||||
struct mmc_host;
 | 
			
		||||
struct mmc_command;
 | 
			
		||||
 | 
			
		||||
int mmc_app_set_bus_width(struct mmc_card *card, int width);
 | 
			
		||||
int mmc_send_app_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
 | 
			
		||||
| 
						 | 
				
			
			@ -27,8 +26,6 @@ int mmc_sd_switch(struct mmc_card *card, int mode, int group,
 | 
			
		|||
	u8 value, u8 *resp);
 | 
			
		||||
int mmc_app_sd_status(struct mmc_card *card, void *ssr);
 | 
			
		||||
int mmc_app_cmd(struct mmc_host *host, struct mmc_card *card);
 | 
			
		||||
int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
 | 
			
		||||
	struct mmc_command *cmd, int retries);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue