mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-23 06:59:51 +00:00

Rename adf_gen4_timer.c to adf_timer.c and adf_gen4_timer.h to adf_timer.h to make the files generation-agnostic. This includes renaming the start() and stop() timer APIs and macro definitions to be generic, allowing for reuse across different device generations. This does not introduce any functional changes. Signed-off-by: George Abraham P <george.abraham.p@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
22 lines
455 B
C
22 lines
455 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright(c) 2023 Intel Corporation */
|
|
|
|
#ifndef ADF_TIMER_H_
|
|
#define ADF_TIMER_H_
|
|
|
|
#include <linux/ktime.h>
|
|
#include <linux/workqueue.h>
|
|
|
|
struct adf_accel_dev;
|
|
|
|
struct adf_timer {
|
|
struct adf_accel_dev *accel_dev;
|
|
struct delayed_work work_ctx;
|
|
ktime_t initial_ktime;
|
|
};
|
|
|
|
int adf_timer_start(struct adf_accel_dev *accel_dev);
|
|
void adf_timer_stop(struct adf_accel_dev *accel_dev);
|
|
|
|
#endif /* ADF_TIMER_H_ */
|