treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / ethernet / qlogic / qed / qed_selftest.h
blobad00d082fec885ba7e12ed54ba40db893f8b81dd
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _QED_SELFTEST_API_H
3 #define _QED_SELFTEST_API_H
4 #include <linux/types.h>
6 /**
7 * @brief qed_selftest_memory - Perform memory test
9 * @param cdev
11 * @return int
13 int qed_selftest_memory(struct qed_dev *cdev);
15 /**
16 * @brief qed_selftest_interrupt - Perform interrupt test
18 * @param cdev
20 * @return int
22 int qed_selftest_interrupt(struct qed_dev *cdev);
24 /**
25 * @brief qed_selftest_register - Perform register test
27 * @param cdev
29 * @return int
31 int qed_selftest_register(struct qed_dev *cdev);
33 /**
34 * @brief qed_selftest_clock - Perform clock test
36 * @param cdev
38 * @return int
40 int qed_selftest_clock(struct qed_dev *cdev);
42 /**
43 * @brief qed_selftest_nvram - Perform nvram test
45 * @param cdev
47 * @return int
49 int qed_selftest_nvram(struct qed_dev *cdev);
51 #endif