can: mcp251x: Make driver more quiet
PATCH 1/1 can: mcp251x: Make driver more quiet
This patch moves one diagnostic message used for debugging purposes to dev_dbg() and removes one useless message.
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/net/can/mcp251x.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/net/can/mcp251x.c +4 -6
@@ -601,10 +601,10 @@ static int mcp251x_do_set_bittiming(struct net_device *net) (bt->prop_seg - 1));mcp251x_write_bits (spi,CNF3 ,CNF3_PHSEG2_MASK , (bt->phase_seg2 -1 )); -dev_info (&spi->dev,"CNF: 0x%02x 0x%02x 0x%02x\n" , -mcp251x_read_reg (spi,CNF1 ), -mcp251x_read_reg (spi,CNF2 ), -mcp251x_read_reg (spi,CNF3 )); +dev_dbg (&spi->dev,"CNF: 0x%02x 0x%02x 0x%02x\n" , +mcp251x_read_reg (spi,CNF1 ), +mcp251x_read_reg (spi,CNF2 ), +mcp251x_read_reg (spi,CNF3 ));return 0 ; }
@@ -1155,8 +1155,6 @@ static int mcp251x_can_probe(struct spi_device *spi)devm_can_led_init (net); -dev_info (&spi->dev,"probed\n" ); -return ret; error_probe:
Signature · 1 line
1.8.3.2
Quoted 4 lines · Alexander Shiyan
This patch moves one diagnostic message used for debugging purposes to
dev_dbg()and removes one useless message.Signed-off-by Alexander Shiyan <[email protected]>
Applied to can-next.
tnx,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |