media: atomisp: remove atomisp_is_acc_enabled()
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:20 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:22:53 +0000 (16:22 +0100)
atomisp_is_acc_enabled() always returns false now, remove it.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-24-hdegoede@redhat.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.h

index d8b3896a267ae972f7341745f6a0ac224d0d65f9..04643eb2dff0fe3da24040845882437595ae9f5f 100644 (file)
@@ -538,7 +538,7 @@ irqreturn_t atomisp_isr(int irq, void *dev)
 
        clear_irq_reg(isp);
 
-       if (!atomisp_streaming_count(isp) && !atomisp_is_acc_enabled(isp))
+       if (!atomisp_streaming_count(isp))
                goto out_nowake;
 
        for (i = 0; i < isp->num_of_streams; i++) {
@@ -1837,7 +1837,7 @@ irqreturn_t atomisp_isr_thread(int irq, void *isp_ptr)
 
        spin_lock_irqsave(&isp->lock, flags);
 
-       if (!atomisp_streaming_count(isp) && !atomisp_is_acc_enabled(isp)) {
+       if (!atomisp_streaming_count(isp)) {
                spin_unlock_irqrestore(&isp->lock, flags);
                return IRQ_HANDLED;
        }
index 725b3b1562b14b3319117f3cfb322fc4281f177e..73906902600ca5fe5f1a3489675c6248e4fb6248 100644 (file)
@@ -624,11 +624,6 @@ unsigned int atomisp_streaming_count(struct atomisp_device *isp)
        return sum;
 }
 
-unsigned int atomisp_is_acc_enabled(struct atomisp_device *isp)
-{
-       return 0;
-}
-
 /*
  * get input are used to get current primary/secondary camera
  */
index 412bfcf33c0f7cfba2ad3038b43522dd574dcf37..d85e0d697a4e768c0910013f82f8835468554a5d 100644 (file)
@@ -57,7 +57,6 @@ extern const struct v4l2_ioctl_ops atomisp_file_ioctl_ops;
 
 unsigned int atomisp_streaming_count(struct atomisp_device *isp);
 
-unsigned int atomisp_is_acc_enabled(struct atomisp_device *isp);
 /* compat_ioctl for 32bit userland app and 64bit kernel */
 long atomisp_compat_ioctl32(struct file *file,
                            unsigned int cmd, unsigned long arg);