]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: gpib: Add missing interface entry point
authorDave Penkler <dpenkler@gmail.com>
Wed, 22 Jan 2025 10:38:58 +0000 (11:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:08:47 +0000 (16:08 +0100)
Declaring the driver entry points as static caused a warning
that the serial_poll_status function of the agilent_82350b driver
was unused.

Add the entry point to the corresponding interface structure
initializations where it was missing.

Fixes: 09a4655ee1eb ("staging: gpib: Add HP/Agilent/Keysight 8235xx PCI GPIB driver")
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250122103859.25499-2-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/agilent_82350b/agilent_82350b.c

index 0ba592dc984900961c2e4fe1803df7274050fcd3..cd7fe7d814cea5d4218e36c95da4848946e8193a 100644 (file)
@@ -842,6 +842,7 @@ static gpib_interface_t agilent_82350b_unaccel_interface = {
        .primary_address = agilent_82350b_primary_address,
        .secondary_address = agilent_82350b_secondary_address,
        .serial_poll_response = agilent_82350b_serial_poll_response,
+       .serial_poll_status = agilent_82350b_serial_poll_status,
        .t1_delay = agilent_82350b_t1_delay,
        .return_to_local = agilent_82350b_return_to_local,
 };
@@ -869,6 +870,7 @@ static gpib_interface_t agilent_82350b_interface = {
        .primary_address = agilent_82350b_primary_address,
        .secondary_address = agilent_82350b_secondary_address,
        .serial_poll_response = agilent_82350b_serial_poll_response,
+       .serial_poll_status = agilent_82350b_serial_poll_status,
        .t1_delay = agilent_82350b_t1_delay,
        .return_to_local = agilent_82350b_return_to_local,
 };