[PATCH] Staging: fbtft: Replace pr_info with dev_info

Shraddha Barke shraddha.6596 at gmail.com
Tue Sep 15 04:52:27 UTC 2015



On Tue, 15 Sep 2015, Shraddha Barke wrote:

> Replace pr_info with dev_info when appropriate device structure
> is present
>
> Signed-off-by: Shraddha Barke <shraddha.6596 at gmail.com>
> ---
> drivers/staging/fbtft/fbtft_device.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
> index fa916e8..3f2c69c 100644
> --- a/drivers/staging/fbtft/fbtft_device.c
> +++ b/drivers/staging/fbtft/fbtft_device.c

This patch is already sent by someone.I understood the concept of dev_* 
and pr_* calls though :)

thanks,

Shraddha


> @@ -1222,7 +1222,7 @@ static int spi_device_found(struct device *dev, void *data)
> {
> 	struct spi_device *spi = container_of(dev, struct spi_device, dev);
>
> -	pr_info(DRVNAME":      %s %s %dkHz %d bits mode=0x%02X\n",
> +	dev_info(dev, DRVNAME":      %s %s %dkHz %d bits mode=0x%02X\n",
> 		spi->modalias, dev_name(dev), spi->max_speed_hz/1000,
> 		spi->bits_per_word, spi->mode);
>
> @@ -1241,7 +1241,7 @@ static int p_device_found(struct device *dev, void *data)
> 	*pdev = container_of(dev, struct platform_device, dev);
>
> 	if (strstr(pdev->name, "fb"))
> -		pr_info(DRVNAME":      %s id=%d pdata? %s\n",
> +		dev_info(dev, DRVNAME":      %s id=%d pdata? %s\n",
> 				pdev->name, pdev->id,
> 				pdev->dev.platform_data ? "yes" : "no");
>
> -- 
> 2.1.4
>
>


More information about the devel mailing list