From 8e01202978292cd2dad187294910859e114015f0 Mon Sep 17 00:00:00 2001 From: delphij Date: Mon, 3 Jun 2013 21:52:19 +0000 Subject: Fix a typo: XPORT_SPI should be tested against transport, nor protocol. Submitted by: Sascha Wildner Reviewed by: mjacob MFC after: 2 weeks --- lib/libcam/camlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libcam') diff --git a/lib/libcam/camlib.c b/lib/libcam/camlib.c index ae35fb9..cd59922 100644 --- a/lib/libcam/camlib.c +++ b/lib/libcam/camlib.c @@ -633,7 +633,7 @@ cam_real_open_device(const char *path, int flags, struct cam_device *device, "%s: %s", func_name, func_name, strerror(errno)); goto crod_bailout; } - if (ccb.cts.protocol == XPORT_SPI) { + if (ccb.cts.transport == XPORT_SPI) { struct ccb_trans_settings_spi *spi = &ccb.cts.xport_specific.spi; device->sync_period = spi->sync_period; -- cgit v1.1